Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 490
   
12-28
CTI OS Developer’s Guide for Cisco Unified Contact Center Enterprise
Release 8.5(3)
Chapter 12      Helper Classes
CWaitObject Class
Parameters
None.
Return Values
Returns a text string containing the description of the exception.
What 
The What method returns a text string containing the description of the exception, the code of an error, 
and the status.
Syntax
const char* What();
Parameters
None.
Return Values
Returns a text string containing the description of the exception, the code of an error, and the status.
CWaitObject Class 
CWaitObject is a CIL object that derives from CtiOsObject. It is a utility class that enables a thread to 
wait for one or more CTI events. The user can provide a list of events along with a wait timeout. Wait 
objects are created with the CreateWaitObject Session Object method and destroyed with the 
DestroyWaitObject Session Object method.
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 deadlocks and the event handler does not receive any more events.