static int freeListNode( ListNode * node, LinkedList * list ) { assert( list != NULL ); return FreeListFree( &list->freeNodeList, node ); }
/**************************************************************************** * Function: FreeThreadPoolJob * * Description: * Deallocates a dynamically allocated ThreadPoolJob. * Parameters: * ThreadPoolJob *tpj - must be allocated with CreateThreadPoolJob *****************************************************************************/ static void FreeThreadPoolJob( ThreadPool * tp, ThreadPoolJob * tpj ) { assert( tp != NULL ); FreeListFree( &tp->jobFreeList, tpj ); }
/*! * \brief Deallocates a dynamically allocated ThreadPoolJob. * * \internal */ static void FreeThreadPoolJob( /*! . */ ThreadPool *tp, /*! Must be allocated with CreateThreadPoolJob. */ ThreadPoolJob *tpj) { FreeListFree(&tp->jobFreeList, tpj); }
/**************************************************************************** * Function: FreeTimerEvent * * Description: * Deallocates a dynamically allocated TimerEvent. * Parameters: * TimerEvent *event - must be allocated with CreateTimerEvent *****************************************************************************/ static void FreeTimerEvent( TimerThread * timer, TimerEvent * event ) { assert( timer != NULL ); FreeListFree( &timer->freeEvents, event ); }
/*! * \brief Deallocates a dynamically allocated TimerEvent. */ static void FreeTimerEvent( /*! [in] Valid timer thread pointer. */ TimerThread *timer, /*! [in] Must be allocated with CreateTimerEvent*/ TimerEvent *event) { assert(timer != NULL); FreeListFree(&timer->freeEvents, event); }