proxygen
|
#include <Subprocess.h>
Public Member Functions | |
virtual | ~DangerousPostForkPreExecCallback () |
virtual int | operator() ()=0 |
See Subprocess::Options::dangerousPostForkPreExecCallback() for usage. Every derived class should include the following warning:
DANGER: This class runs after fork in a child processes. Be fast, the parent thread is waiting, but remember that other parent threads are running and may mutate your state. Avoid mutating any data belonging to the parent. Avoid interacting with non-POD data that originated in the parent. Avoid any libraries that may internally reference non-POD data. Especially beware parent mutexes – for example, glog's LOG() uses one.
Definition at line 287 of file Subprocess.h.
|
inlinevirtual |
Definition at line 288 of file Subprocess.h.
|
pure virtual |
Implemented in WriteFileAfterFork.