DriverStation::~DriverStation()
{
	m_task.Stop();
	m_instance = NULL;
	deleteMultiWait(m_waitForDataSem);
	// Unregister our semaphore.
	HALSetNewDataSem(0);
	deleteMultiWait(m_packetDataAvailableMultiWait);
	deleteMutex(m_packetDataAvailableMutex);
	deleteMutex(m_waitForDataMutex);
}
Exemple #2
0
	virtual ~TPThread()
	{
		deleteCond();
		deleteMutex();

		DEBUG_MSG(boost::format("TPThread::~TPThread(): %1%\n") % this);
	}
Exemple #3
0
void OSystem_SDL::quit() {
	if (_cdrom) {
		//SDL_CDStop(_cdrom);
		//SDL_CDClose(_cdrom);
	}
	unloadGFXMode();
	deleteMutex(_graphicsMutex);

	if (_joystick)
		SDL_JoystickClose(_joystick);
	SDL_ShowCursor(SDL_ENABLE);

	SDL_RemoveTimer(_timerID);
	closeMixer();

	free(_dirtyChecksums);
	free(_currentPalette);
	free(_cursorPalette);
	free(_mouseData);

	delete _timer;

	SDL_Quit();

	// Even Manager requires save manager for storing
	// recorded events
	delete getEventManager();
	delete _savefile;

	exit(0);
}
DriverStation::~DriverStation()
{
	m_instance = NULL;
	deleteMultiWait(m_waitForDataSem);
	deleteMutex(m_waitForDataMutex);
	// TODO: Release m_stateSemaphore and m_joystickSemaphore?
}
void deleteConnection( PAPIConnection * inConnection )
{
	if ( inConnection != 0 )
	{
		PAPIStatus theStatus;
		stopListeningThread( inConnection, &theStatus );
		deleteListenerList( inConnection->mListeners );
		deleteMutex( inConnection->mListenersMutex );
		deleteMutex( inConnection->mSavedMessageMutex );
		deleteMutex( inConnection->mListenerThreadStatusMutex );
		deleteMutex( inConnection->mConnectionStateChangeMutex );
		if ( inConnection->mAuthHandlerUserData != 0 )
		{
			free( ( void * )inConnection->mAuthHandlerUserData );
		}
		free( ( void * )inConnection );
	}
}
Exemple #6
0
OSystem_Android::~OSystem_Android() {
	ENTER();

	delete _mixer;
	_mixer = 0;
	delete _fsFactory;
	_fsFactory = 0;
	delete _timerManager;
	_timerManager = 0;

	deleteMutex(_event_queue_lock);
}
Exemple #7
0
Timer::~Timer()
{
    deleteMutex(m_semaphore);
}
Exemple #8
0
	~ReentrantSemaphore()
	{
		deleteMutex(m_semaphore);
	}