- /* $Id: H:/drh/idioms/book/RCS/thread.doc,v 1.11 1997/02/21 19:50:51 drh Exp $ */
- #ifndef CHAN_INCLUDED
- #define CHAN_INCLUDED
- #define T Chan_T
- typedef struct T *T;
- extern T Chan_new (void);
- extern int Chan_send (T c, const void *ptr, int size);
- extern int Chan_receive(T c, void *ptr, int size);
- #undef T
- #endif