Signature Description Parameters
static void set_lock (SpinLock *lock);
static void remove_lock ();
DataFrame has unprotected static data. If you are using DataFrame in a multi-threaded program, you must provide a SpinLock. DataFrame will use your SpinLock to protect its static data.
This is done this way, so by default, there is no locking overhead.
lock: A pointer to SpinLock defined in Utils/ThreadGranularity.h file