/* $Id: atomic.c,v 1.1 2003/03/17 01:55:39 wafer Exp $ */ #include "scheduler.h" #include "queue.h" static int _atomic; int set_atomic (int a) { /* lock or unlock the queue */ if (a) queue_lock(); else queue_unlock(); return _atomic = a; } int get_atomic () { return _atomic; }