My Project
Loading...
Searching...
No Matches
Public Member Functions | Data Fields | Private Attributes
LibThread::Region Class Reference

Public Member Functions

 Region ()
 
virtual ~Region ()
 
Lockget_lock ()
 
void lock ()
 
void unlock ()
 
int is_locked ()
 
- Public Member Functions inherited from LibThread::SharedObject
 SharedObject ()
 
virtual ~SharedObject ()
 
void set_type (int type_init)
 
int get_type ()
 
void set_name (std::string &name_init)
 
void set_name (const char *s)
 
std::string & get_name ()
 
void incref (int by=1)
 
long decref ()
 
long getref ()
 
virtual BOOLEAN op2 (int op, leftv res, leftv a1, leftv a2)
 
virtual BOOLEAN op3 (int op, leftv res, leftv a1, leftv a2, leftv a3)
 

Data Fields

SharedObjectTable objects
 

Private Attributes

Lock region_lock
 

Detailed Description

Definition at line 205 of file shared.cc.

Constructor & Destructor Documentation

◆ Region()

LibThread::Region::Region ( )
inline

Definition at line 210 of file shared.cc.

210: SharedObject(), region_lock(), objects() { }
SharedObjectTable objects
Definition: shared.cc:209

◆ ~Region()

virtual LibThread::Region::~Region ( )
inlinevirtual

Definition at line 211 of file shared.cc.

211{ }

Member Function Documentation

◆ get_lock()

Lock * LibThread::Region::get_lock ( )
inline

Definition at line 212 of file shared.cc.

212{ return &region_lock; }

◆ is_locked()

int LibThread::Region::is_locked ( )
inline

Definition at line 221 of file shared.cc.

221 {
222 return region_lock.is_locked();
223 }
bool is_locked()
Definition: thread.h:68

◆ lock()

void LibThread::Region::lock ( )
inline

Definition at line 213 of file shared.cc.

213 {
214 if (!region_lock.is_locked())
216 }
void lock()
Definition: thread.h:46

◆ unlock()

void LibThread::Region::unlock ( )
inline

Definition at line 217 of file shared.cc.

217 {
220 }
void unlock()
Definition: thread.h:57

Field Documentation

◆ objects

SharedObjectTable LibThread::Region::objects

Definition at line 209 of file shared.cc.

◆ region_lock

Lock LibThread::Region::region_lock
private

Definition at line 207 of file shared.cc.


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