CORBA 2.6.1 Programmer's Reference
Table Of Contents
- CORBA 2.6.1 Programmer's Reference
- Legal Notice
- Contents
- New and Changed Information
- About This Manual
- Chapter 1. Core CORBA
- Chapter 2. Interoperability and Interworking
- Chapter 3. C++ Language Mapping
- Chapter 4. Java Language Mapping
- Chapter 5. Naming Service
- Chapter 6. Event Service
- Chapter 7. Transaction Service
- Chapter 8. NonStop CORBA vthread Interface
- Chapter 9. NonStop CORBA Event Framework
- Chapter 10. Exception Handling: NonStop CORBA Minor Codes
- Chapter 11. NonStop CORBA System Error Messages
- Index
- Local Disk
Returns zero if successful.
int unlock()
Unlocks the mutex. Returns zero if successful.
class Preemption_Mutex
This class, which wraps FW_Thread::Mutex with preemption awareness, is a no-op on
non-preemptive threading platforms such as NonStop systems. On preemptive threading platforms (such
as Unix and Microsoft Windows), this class behaves identically to Fw_Thread::Mutex.
API Methods
Preemption_Mutex()
Creates a mutex object.
~Preemption_Mutex()
Destructor for the current mutex object.
int lock()
Blocks the current thread until the mutex can be locked. Returns zero if successful.
int try_lock()
Attempts to lock the mutex. If unable to, returns immediately with non-zero result. Returns zero if
successful.
int unlock()
Unlocks the mutex. Returns zero if successful.
class Condition_Variable
Wraps condition variable function and data as an object coupled with Mutex. Most uses of condition
variables have a one-to-one relationship with a protecting mutex. This object combines the two. The
Condition_Variable class also maintains the state of the condition variable indicating whether the
condition variable has been signaled. If the condition variable has already been signaled, the next
immediate wait ( ) call on the condition variable returns without blocking. However, any subsequent wait
( ) call on the condition variable blocks untill the signal ( ) or broadcast ( ) calls are made on the
condition variable.
Condition_Variable inherits from Mutex.
API Methods
Condition_Variable()
Creates a condition variable object.