3 * Author: Lukas Krejci <krejci.l@centrum.cz>, (C) 2008
4 * Copyright: See COPYING file that comes with this distribution
7 #include <beacon/detail/quick_wait.hpp>
8 #include <boost/thread.hpp>
14 void wait(volatile AO_TS_t
& guard
) {
15 while(AO_test_and_set(&guard
) == AO_TS_SET
) boost::thread::yield();
18 void notify(volatile AO_TS_t
& guard
) {