core/lock.h File Reference


Detailed Description

Id
lock.h 1182 2008-12-22 22:08:36Z dchassin
Copyright (C) 2008 Battelle Memorial Institute

Definition in file lock.h.

Go to the source code of this file.

Defines

#define LOCK(flags)   ((*(callback->lock_count))++, (*(callback->lock_spin))+=lock(flags))
 Locks an item.
#define LOCK_OBJECT(obj)   ((*(callback->lock_count))++, (*(callback->lock_spin))+=lock(&((obj)->flags)))
 Locks an object.
#define UNLOCK(flags)   unlock(flags)
 Unlocks an item.
#define UNLOCK_OBJECT(obj)   unlock(&((obj)->flags))
 Unlocks an object.


GridLAB-DTM Version 2.0
An open-source project initiated by the US Department of Energy