iothread.h File Reference

Interface to a thread for blocking I/O operations. More...

#include "bool.h"

Include dependency graph for iothread.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define IO_QUEUE_SIZE   4
 The size of the queue for I/O operations.


typedef void(*) ioOperation (void *data)
 The function prototype of all functions called by the I/O thread to perform blocking operations.


Bool CancelOperations ()
 Attempts to cancel all operations currently queued on the I/O thread.
Bool IsCancelationRequested ()
 Tells if a request has been made to cancel the current operation on the I/O thread through a call to CancelOperations().
int QueueOperation (ioOperation op, void *data)
 Adds an operation to the queue of pending blocking operations.
void StartIOThread ()
 Starts the I/O thread.
void StopIOThread ()
 Terminates the I/O thread.

Detailed Description

Interface to a thread for blocking I/O operations.

Jeff Jackowski (
Copyright (C) 2007 Jeff Jackowski

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Or visit their website at:

Definition in file iothread.h.

Generated on Mon May 28 04:41:39 2007 for Retro Tank Super Attack by  doxygen 1.5.2