mirror of
https://github.com/springzfx/cgproxy.git
synced 2026-02-09 21:14:57 +08:00
replace pthread with c++ thread
This commit is contained in:
@@ -90,11 +90,10 @@ int execsnoop() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void *startThread(void *arg) {
|
||||
thread_arg *p = (thread_arg *)arg;
|
||||
callback = p->handle_pid;
|
||||
void startThread(function<int(int)> c, promise<void> status) {
|
||||
status.set_value();
|
||||
callback = c;
|
||||
execsnoop();
|
||||
return (void *)0;
|
||||
}
|
||||
|
||||
} // namespace CGPROXY::EXECSNOOP
|
||||
Reference in New Issue
Block a user