Page Speed Optimization Libraries
1.13.35.1
|
Public Member Functions | |
void | PermitThreadStarting () |
Public Member Functions inherited from net_instaweb::PthreadThreadSystem | |
virtual CondvarCapableMutex * | NewMutex () |
virtual RWLock * | NewRWLock () |
virtual Timer * | NewTimer () |
virtual ThreadId * | GetThreadId () const |
Protected Member Functions | |
virtual void | BeforeThreadRunHook () |
Additional Inherited Members | |
Public Types inherited from net_instaweb::ThreadSystem | |
enum | ThreadFlags { kDetached = 0, kJoinable = 1 } |
|
protectedvirtual |
This hook will get invoked by the implementation in the context of a thread before invoking its Run() method.
Reimplemented from net_instaweb::PthreadThreadSystem.
void net_instaweb::SystemThreadSystem::PermitThreadStarting | ( | ) |
It's not safe to start threads in a process that will later fork. In order to enforce this, call PermitThreadStarting() in the child process right after forking, and DCHECK-fail if something tries to start a thread before then.