/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % % % R e l i n q u i s h W a n d I d % % % % % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % RelinquishWandId() relinquishes a unique wand id. % % The format of the RelinquishWandId() method is: % % void RelinquishWandId(const size_t *id) % % A description of each parameter follows: % % o id: a unique wand id. % */ WandExport void RelinquishWandId(const size_t id) { LockSemaphoreInfo(wand_semaphore); if (wand_ids != (SplayTreeInfo *) NULL) (void) DeleteNodeByValueFromSplayTree(wand_ids,(const void *) id); UnlockSemaphoreInfo(wand_semaphore); }
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % % % R e l i n q u i s h W a n d I d % % % % % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % RelinquishWandId() relinquishes a unique wand id. % % The format of the RelinquishWandId() method is: % % void RelinquishWandId(const unsigned long *id) % % A description of each parameter follows: % % o id: a unique wand id. % */ WandExport void RelinquishWandId(const unsigned long id) { (void) LockSemaphoreInfo(wand_semaphore); if (wand_ids != (SplayTreeInfo *) NULL) (void) DeleteNodeByValueFromSplayTree(wand_ids,(const void *) id); (void) UnlockSemaphoreInfo(wand_semaphore); }