Lines Matching refs:flag
52 once_block_flag volatile& flag = m_flag; variable
53 while (flag.status != once_block_flag::initialized)
55 if (flag.status == once_block_flag::uninitialized)
57 flag.status = once_block_flag::being_initialized;
65 while (flag.status == once_block_flag::being_initialized)
130 virtual bool enter_once_block(once_block_flag volatile& flag) = 0;
131 virtual void commit(once_block_flag& flag) = 0;
132 virtual void rollback(once_block_flag& flag) = 0;
176 bool enter_once_block(once_block_flag volatile& flag)
180 while (flag.status != once_block_flag::initialized)
182 if (flag.status == once_block_flag::uninitialized)
184 flag.status = once_block_flag::being_initialized;
192 while (flag.status == once_block_flag::being_initialized)
205 void commit(once_block_flag& flag)
210 flag.status = once_block_flag::initialized;
216 void rollback(once_block_flag& flag)
221 flag.status = once_block_flag::uninitialized;
236 bool enter_once_block(once_block_flag volatile& flag)
240 while (flag.status != once_block_flag::initialized)
242 if (flag.status == once_block_flag::uninitialized)
244 flag.status = once_block_flag::being_initialized;
251 while (flag.status == once_block_flag::being_initialized)
261 void commit(once_block_flag& flag)
265 flag.status = once_block_flag::initialized;
270 void rollback(once_block_flag& flag)
274 flag.status = once_block_flag::uninitialized;
412 once_block_flag volatile& flag = m_flag; variable
413 while (flag.status != once_block_flag::initialized)
415 if (flag.status == once_block_flag::uninitialized)
417 flag.status = once_block_flag::being_initialized;
425 while (flag.status == once_block_flag::being_initialized)