home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Acorn User 2
/
AUCD2.iso
/
program
/
vista.arc
/
!Vista
/
h
/
channel
next >
Wrap
Text File
|
1996-01-25
|
2KB
|
61 lines
// **************************************************************************
// Copyright 1996 David Allison
//
// VV VV IIIIII SSSSS TTTTTT AA
// VV VV II SS TT AA AA
// VV VV II SSSS TT AA AA
// VV VV II SS TT AAAAAAAA
// VV IIIIII SSSS TT AA AA
//
// MULTI-THREADED C++ WIMP CLASS LIBRARY
// for RISC OS
// **************************************************************************
//
// P U B L I C D O M A I N L I C E N C E
// -------------------------------------------
//
// This library is copyright. You may not sell the library for
// profit, but you may sell products which use it providing
// those products are presented as executable code and are not
// libraries themselves. The library is supplied without any
// warranty and the copyright owner cannot be held responsible for
// damage resulting from failure of any part of this library.
//
// See the User Manual for details of the licence.
//
// *************************************************************************
//
// a channel
//
#ifndef __channel_h
#define __channel_h
#include "Vista:defs.h"
#ifndef __delete_h
#include "Vista:delete.h"
#endif
class Task ;
//
// a channel consists of a communications pipe to another task.
//
class Channel : virtual public DeferredDelete
{
public:
Channel(Task *task, char *name) ; // create a new channel from a task
virtual ~Channel() ;
virtual void receive (int action, int task, int my_ref, int your_ref, int data_length, void *data) ; // receive a message
virtual int accept (int your_ref) = 0 ; // accept a message?
char *name ;
protected:
Task *task ;
} ;
#endif