
1 May
2009
1 May
'09
5:24 a.m.
AMDG ZouLei wrote:
When I refer the document of thread library, a word "RALL-style" appear in the introduction of the class lock_guard: This provides simple RAII-style locking of a Lockable object, to facilitate exception-safe locking and unlocking.
I didn't got the main point of this word "RALL-style", could anyone tell me the meaning ? Thanks.
It's RAII, not RALL, and it stands for Resource Acquisition Is Initialization. I basically means that every resource, such as a lock, is owned by an object whose destructor releases it. In Christ, Steven Watanabe