Daylight v4.9 Release Date: 1 February 2008 Namedt_mp_trylock - lock an object familyGeneric Prototypedt_mp_trylock(dt_Handle) => dt_BooleanC Prototype#include "dt_smiles.h"dt_Boolean dt_mp_trylock(dt_Handle object) FORTRAN Prototypeinclude 'dt_f_smiles.inc'logical dt_f_mp_trylock(object) integer*4 object DescriptionLocks an object family within the toolkit. Unlike dt_mp_lock(3), this function will not block if the lock is not available. The function can be used in a multi-threading program with global access of objects across threads to coordinate object access.Return ValueReturns TRUE when the lock is acquired or FALSE if the lock is not available.Related Topicsdt_ancestor(3) dt_mp_initialize(3) dt_mp_lock(3) dt_mp_unlock(3) |