thrqueue.e


/*************************************************************************
*                                                                        *
*   Export: thrqueue.e                                                   *
*                                                                        *
*   realizzato dal Gruppo 17 di Lab2 Anno Accademico 1995/96             *
*                                                                        *
*   Lorenzo     Claudio       Valerio    Riccardo    Emiliano            *
*   Coronati    Lanconelli    Paolini    Solmi       Trentini            *
*                                                                        *
**************************************************************************/
#ifndef _THRQ_E
#define _THRQ_E

#include "thrqueue.h"

extern void initThread();
extern thr_t *AllocThread();
extern void FreeThread(/* thr_t *p */);

#define insertThread(tp, p)   (insertQueue(tp, p))
#define removeThread(tp)  ((thr_t *)removeQueue(tp))
#define outThread(tp, p)    ((thr_t *)outQueue(tp, p))
#define headThread(tp)        ((thr_t *)headQueue(tp))
/*
void insertThread(thr_t **tp, thr_t *p);
thr_t *removeThread(thr_t **tp);
thr_t *outThread(thr_t **tp, thr_t *p);
thr_t *headThread(thr_t *tp);
*/

#endif


[INDICE CODICE]