Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 546
 
Chapter 12      Helper Classes
CWaitObject Class (C++ and Java only)
12-36
Cisco ICM Software CTI OS Developer’s Guide Release 6.0(0)
Warning
You must not use a WaitObject instance within an event handler. Events are 
sent to desktop applications by a single thread in the CIL. If that thread is 
blocked while waiting for a specific event, the thread will deadlock and the 
event handler will not receive any more events.
Methods
 list the CWaitObject class methods.
CreateWaitObject
See 
Table 12-8 CWaitObject Class Methods
Method
Description
CreateWaitObject
See 
DestroyWaitObject
See 
DumpEventMask
Returns a printable string listing the events in the 
CWaitObject’s mask
GetMask
Sets a user provided pointer to an Arguments object 
that contains the list of events that the object will 
wait for.
GetTriggerEvent
Gets the ID of the event that triggered the 
WaitOnMultipleEvents method to wake.
InMask
Returns true if the specified event ID is in the list of 
events that the object will wait for.
SetMask
Set the list of events that the object will wait for.
WaitOnMultipleEvents
Waits for the events in the object’s event mask for 
the specified time period or until one of the events 
occurs.