class CSyncObject

More...

Contains pure virtuals
Definition#include <classlib/include/classlib/mtsync.h>
Inherited byCCriticalSection, CEvent, CMutex, CSemaphore
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

class CSyncObject

Base class for syncronization objects.

 CSyncObject ()

CSyncObject

 ~CSyncObject ()

~CSyncObject

[virtual]

int  Lock ()

Lock

[pure virtual]

The calling thread try to acquire the object locking ad need. Return 0 on success.

int  Unlock ()

Unlock

[pure virtual]

The calling thread unlock the resource for other thread. Return 0 on success.

int  Try ()

Try

[pure virtual]

Try to acquire the lock but don't lock the calling thread. return -1 if not possible to acquire the object. Return 0 on success.


Generated by: nicola on gulliver.wadahome.it on Sun May 25 13:54:34 2003, using kdoc 2.0a53.