| 1154 | } |
| 1155 | |
| 1156 | void asCLockableSharedBool::Set(bool v) |
| 1157 | { |
| 1158 | // Make sure the value is not changed while another thread |
| 1159 | // is inspecting it and taking a decision on what to do. |
| 1160 | Lock(); |
| 1161 | value = v; |
| 1162 | Unlock(); |
| 1163 | } |
| 1164 | |
| 1165 | void asCLockableSharedBool::Lock() const |
| 1166 | { |