Synchronized Class Reference

The Synchronized class implements services for synchronizing access between different threads. More...

#include <threads.h>

Inheritance diagram for Synchronized:

Request Thread ThreadList ThreadManager MibContext MibEntry RequestList SingleThreadObject MibComplexEntry MibGroup MibLeaf MibProxy MibTable MibStaticTable agentpp_simulation_mib simSysGroup snmp_notification_mib snmp_proxy_mib snmp_target_mib snmpGroup sysGroup VacmMIB agentppSimDeleteRow agentppSimDeleteTableContents agentppSimMode DateAndTime OctetStrMinMax SimMibLeaf SnmpDisplayString snmpEnableAuthenTraps SnmpEngineID snmpInASNParseErrs snmpInBadCommunityNames snmpInBadCommunityUses snmpInBadValues snmpInBadVersions snmpInGenErrs snmpInGetNexts snmpInGetRequests snmpInGetResponses snmpInNoSuchNames snmpInPkts snmpInReadOnlys snmpInSetRequests SnmpInt32MinMax snmpInTooBigs snmpInTotalReqVars snmpInTotalSetVars snmpInTraps snmpOutBadValues snmpOutGenErrs snmpOutGetNexts snmpOutGetRequests snmpOutGetResponses snmpOutNoSuchNames snmpOutPkts snmpOutSetRequests snmpOutTooBigs snmpOutTraps snmpProxyDrops snmpRowStatus snmpSilentDrops SnmpTagList SnmpTagValue snmpTargetAddrParams snmpTargetAddrTAddress snmpTargetAddrTDomain SnmpUnavailableContexts SnmpUnknownContexts StorageType sysObjectID sysORLastChange sysServices sysUpTime TestAndIncr TimeStamp SimMibTable StorageTable TimeStampTable VacmContextTable

List of all members.

Public Member Functions

 Synchronized ()
 ~Synchronized ()
void wait ()
 Causes current thread to wait until another thread invokes the notify() method or the notifyAll() method for this object.
boolean wait (unsigned long timeout)
 Causes current thread to wait until either another thread invokes the notify() method or the notifyAll() method for this object, or a specified amount of time has elapsed.
void notify ()
 Wakes up a single thread that is waiting on this object's monitor.
void notify_all ()
 Wakes up all threads that are waiting on this object's monitor.
void lock ()
 Enter a critical section.
boolean trylock ()
 Try to enter a critical section.
void unlock ()
 Leave a critical section.


Detailed Description

The Synchronized class implements services for synchronizing access between different threads.

Author:
Frank Fock
Version:
3.5.3

Constructor & Destructor Documentation

Synchronized::Synchronized (  ) 

Synchronized::~Synchronized (  ) 


Member Function Documentation

void Synchronized::wait (  ) 

Causes current thread to wait until another thread invokes the notify() method or the notifyAll() method for this object.

boolean Synchronized::wait ( unsigned long  timeout  ) 

Causes current thread to wait until either another thread invokes the notify() method or the notifyAll() method for this object, or a specified amount of time has elapsed.

Parameters:
timeout timeout in milliseconds.
return TRUE if timeout occured, FALSE otherwise.

void Synchronized::notify (  ) 

Wakes up a single thread that is waiting on this object's monitor.

void Synchronized::notify_all (  ) 

Wakes up all threads that are waiting on this object's monitor.

void Synchronized::lock (  ) 

Enter a critical section.

boolean Synchronized::trylock (  ) 

Try to enter a critical section.

Returns:
TRUE if the attempt was successful, FALSE otherwise.

void Synchronized::unlock (  ) 

Leave a critical section.


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

Generated on Fri May 29 22:36:56 2009 for AGENT++ by  doxygen 1.5.6