Changeset 11 in libcf++ for trunk/include/cf/task.h
- Timestamp:
- 06/08/15 21:27:49 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/cf/task.h
r7 r11 9 9 #include "cf/exception.h" 10 10 11 #define SYNCHRONIZED(_s) for (cf::task::scopedLock _sl(&_s) ; _sl. synchronizer()->locked() ; _sl.synchronizer()->unlock())11 #define SYNCHRONIZED(_s) for (cf::task::scopedLock _sl(&_s) ; _sl.locked() ; _sl.unlock()) 12 12 13 13 namespace cf … … 116 116 117 117 /** 118 * get synchronizer 119 * @return an instance of synchronizer 120 */ 121 ISynchronizer * synchronizer(); 118 * is locked ? 119 * @return true; false 120 */ 121 cf::bool_t locked() const; 122 123 /** 124 * unlock 125 */ 126 cf::void_t unlock() 127 throw (cf::exception); 122 128 }; 123 129
Note:
See TracChangeset
for help on using the changeset viewer.