Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | List of all members
net_instaweb::SystemThreadSystem Class Reference
Inheritance diagram for net_instaweb::SystemThreadSystem:
net_instaweb::PthreadThreadSystem net_instaweb::ThreadSystem net_instaweb::ApacheThreadSystem

Public Member Functions

void PermitThreadStarting ()
 
- Public Member Functions inherited from net_instaweb::PthreadThreadSystem
virtual CondvarCapableMutexNewMutex ()
 
virtual RWLockNewRWLock ()
 
virtual TimerNewTimer ()
 
virtual ThreadIdGetThreadId () const
 

Protected Member Functions

virtual void BeforeThreadRunHook ()
 

Additional Inherited Members

- Public Types inherited from net_instaweb::ThreadSystem
enum  ThreadFlags { kDetached = 0, kJoinable = 1 }
 

Member Function Documentation

virtual void net_instaweb::SystemThreadSystem::BeforeThreadRunHook ( )
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.


The documentation for this class was generated from the following file: