- Main Page
- Modules
- Namespaces
- Classes
- Files
- Directories
- Related Pages

- File List
- File Members

# ThreadTest.cpp File Reference

Tests multiple readers and writers on the same instance of RakPeer. Define _RAKNET_THREADSAFE in RakNetDefines.h before running this. More...

`#include "RakPeerInterface.h"`
`#include "RakNetworkFactory.h"`
`#include "GetTime.h"`
`#include "RakNetStatistics.h"`
`#include "MessageIdentifiers.h"`
`#include <conio.h>`
`#include <stdio.h>`
`#include <windows.h>`
`#include <process.h>`

## Functions
unsigned __stdcall | ProducerThread (LPVOID arguments)
unsigned __stdcall | ConsumerThread (LPVOID arguments)
void | main (void)
## Variables
RakPeerInterface * | peer1
RakPeerInterface * | peer2
bool | endThreads

## Detailed Description

Tests multiple readers and writers on the same instance of RakPeer. Define _RAKNET_THREADSAFE in RakNetDefines.h before running this.

This file is part of RakNet Copyright 2003 Kevin Jenkins.

Usage of RakNet is subject to the appropriate license agreement. Creative Commons Licensees are subject to the license found at http://creativecommons.org/licenses/by-nc/2.5/ Single application licensees are subject to the license found at http://www.jenkinssoftware.com/SingleApplicationLicense.html Custom license users are subject to the terms therein. GPL license users are subject to 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.