obj_unlock function <BLOC/object.h>

The obj_unlock function unlocks an object after a call to obj_lock. An object must be unlocked an equal number of times to being locked by a single thread, before other threads are able to compete for it.

Syntax

void
obj_unlock(
	void *addr
);

Parameters

addr

The address of the object to be unlocked. This must be a pointer to an object created by the library or the call will cause the program to terminate.