Ejemplo n.º 1
0
static int
freeListNode( ListNode * node,
              LinkedList * list )
{
    assert( list != NULL );

    return FreeListFree( &list->freeNodeList, node );
}
Ejemplo n.º 2
0
/****************************************************************************
 * 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 );
}
Ejemplo n.º 3
0
/*!
 * \brief Deallocates a dynamically allocated ThreadPoolJob.
 *
 * \internal
 */
static void FreeThreadPoolJob(
	/*! . */
	ThreadPool *tp,
	/*! Must be allocated with CreateThreadPoolJob. */
	ThreadPoolJob *tpj)
{
	FreeListFree(&tp->jobFreeList, tpj);
}
Ejemplo n.º 4
0
/****************************************************************************
 * 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 );
}
Ejemplo n.º 5
0
/*!
 * \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);
}