Page Speed Optimization Libraries  1.5.27.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
net_instaweb::NullThreadSystem Class Reference

#include "null_thread_system.h"

Inheritance diagram for net_instaweb::NullThreadSystem:
net_instaweb::ThreadSystem

List of all members.

Public Member Functions

virtual CondvarCapableMutexNewMutex ()
virtual RWLockNewRWLock ()
virtual TimerNewTimer ()
virtual ThreadIdGetThreadId () const
void set_current_thread (int id)
 Provide injection/observation of current thread IDs.
int current_thread () const

Detailed Description

Mock thread system. This can create mutexes that do no locking, but currently cannot create any threads or condvars -- doing so will result in a fatal error.


Member Function Documentation

Returns an object holding the current thread ID. The resultant object must be freed by the caller.

Implements net_instaweb::ThreadSystem.

Makes a new mutex for this system.

See also CondvarCapableMutex::NewCondvar.

Implements net_instaweb::ThreadSystem.

This lock will provide following guarantee -

  • Reader reentrant safe.
  • Writer Priority, this ensures no writer starvation.

Implements net_instaweb::ThreadSystem.

Creates and returns a real-time timer. Caller is responsible for deleting.

Todo:
TODO(jmarantz): consider removing this and controlling timers separately.

Implements net_instaweb::ThreadSystem.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines