Exemplo n.º 1
0
void destroy_args( argument *arg )
{
    hthread_cond_destroy( arg->cond_notempty );
    hthread_cond_destroy( arg->cond_notfull );
    hthread_mutex_destroy( arg->mutex );

    free( arg->cond_notempty );
    free( arg->cond_notfull );
    free( arg->mutex );
    free( arg );
}
Exemplo n.º 2
0
/*-------------------------------------------------------------------*/
DLL_EXPORT int  hthread_destroy_condition( COND* plc, const char* location )
{
    int rc;
    UNREFERENCED( location );
    rc = hthread_cond_destroy( plc );
    return rc;
}