ACE_Write_Guard< ACE_LOCK > Class Template ReferenceThis class is similar to class ACE_Guard, though it acquires/releases a write lock automatically (naturally, the <ACE_LOCK> it is instantiated with must support the appropriate API). More...
Inheritance diagram for ACE_Write_Guard< ACE_LOCK >:
![]()
Collaboration diagram for ACE_Write_Guard< ACE_LOCK >:
![]()
Detailed Descriptiontemplate<class ACE_LOCK>
This class is similar to class ACE_Guard, though it acquires/releases a write lock automatically (naturally, the <ACE_LOCK> it is instantiated with must support the appropriate API). |
ACE_INLINE ACE_Write_Guard< ACE_LOCK >::ACE_Write_Guard | ( | ACE_LOCK & | m | ) | [inline] |
Implicitly and automatically acquire a write lock.
ACE_INLINE ACE_Write_Guard< ACE_LOCK >::ACE_Write_Guard | ( | ACE_LOCK & | m, | |
bool | block | |||
) | [inline] |
Implicitly and automatically acquire (or try to acquire) a write lock.
ACE_INLINE int ACE_Write_Guard< ACE_LOCK >::acquire_write | ( | void | ) | [inline] |
Explicitly acquire the write lock.
ACE_INLINE int ACE_Write_Guard< ACE_LOCK >::acquire | ( | void | ) | [inline] |
ACE_INLINE int ACE_Write_Guard< ACE_LOCK >::tryacquire_write | ( | void | ) | [inline] |
Conditionally acquire the write lock (i.e., won't block).
ACE_INLINE int ACE_Write_Guard< ACE_LOCK >::tryacquire | ( | void | ) | [inline] |
void ACE_Write_Guard< ACE_LOCK >::dump | ( | void | ) | const [inline] |