home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Acorn User 2
/
AUCD2.iso
/
program
/
vista.arc
/
!Vista
/
h
/
delete
< prev
next >
Wrap
Text File
|
1996-01-25
|
2KB
|
50 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.
//
// *************************************************************************
//
// deferred deletion class
//
#ifndef __delete_h
#define __delete_h
//
// this class is used to enable a class to have a deferred deletion. This is
// necessary because you can't delete a class from within one of its member
// functions. The Task takes care of deletions when it next becomes idle.
//
class DeferredDelete
{
friend class Task ;
public:
DeferredDelete() { next = 0 ; }
virtual ~DeferredDelete() {}
protected:
DeferredDelete *next ;
} ;
#endif