Back to index

im-sdk  12.3.91
Public Member Functions | Private Member Functions | Private Attributes
IMSyncObject Class Reference

#include <IMLock.hh>

List of all members.

Public Member Functions

bool locked_p ()
void lock ()
void unlock ()
 IMSyncObject ()
 ~IMSyncObject ()

Private Member Functions

 IMSyncObject (const IMSyncObject &a)
IMSyncObjectoperator= (const IMSyncObject &a)

Private Attributes

bool locked
THREAD_SYNC_OBJECT so

Detailed Description

Definition at line 7 of file IMLock.hh.


Constructor & Destructor Documentation

IMSyncObject::IMSyncObject ( const IMSyncObject a) [private]

Definition at line 30 of file IMLock.hh.

    {
       locked = false;
       INIT_SYNC_OBJECT(so);
    }

Definition at line 35 of file IMLock.hh.

    {
       if (locked) UNLOCK_SYNC_OBJECT(so);
       DESTROY_SYNC_OBJECT(so);
    }

Member Function Documentation

void IMSyncObject::lock ( ) [inline]

Definition at line 18 of file IMLock.hh.

    {
       LOCK_SYNC_OBJECT(so);
       locked = true;
    }

Here is the caller graph for this function:

bool IMSyncObject::locked_p ( ) [inline]

Definition at line 16 of file IMLock.hh.

    { return locked; }
IMSyncObject& IMSyncObject::operator= ( const IMSyncObject a) [private]
void IMSyncObject::unlock ( ) [inline]

Definition at line 23 of file IMLock.hh.

    {
       if (locked) {
           locked = false;
           UNLOCK_SYNC_OBJECT(so);
       }
    }

Here is the caller graph for this function:


Member Data Documentation

bool IMSyncObject::locked [private]

Definition at line 9 of file IMLock.hh.

THREAD_SYNC_OBJECT IMSyncObject::so [private]

Definition at line 10 of file IMLock.hh.


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