mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-30 05:35:54 +01:00
24cb244d43
This was a _ton_ of changes, made 15 years ago, so there are probably some problems to work out still. Among others: Engine/Base/Stream.* was mostly abandoned and will need to be re-ported. Still, this is a pretty good start, and probably holds a world record for lines of changes or something. :)
22 lines
761 B
C++
22 lines
761 B
C++
#include "Engine/StdH.h"
|
|
#include <Engine/Base/Synchronization.h>
|
|
|
|
#if (!defined SINGLE_THREADED)
|
|
#error you probably want to define SINGLE_THREADED if you compile this.
|
|
#endif
|
|
|
|
CTCriticalSection::CTCriticalSection(void) {}
|
|
CTCriticalSection::~CTCriticalSection(void) {}
|
|
INDEX CTCriticalSection::Lock(void) { return(1); }
|
|
INDEX CTCriticalSection::TryToLock(void) { return(1); }
|
|
INDEX CTCriticalSection::Unlock(void) { return(0); }
|
|
CTSingleLock::CTSingleLock(CTCriticalSection *pcs, BOOL bLock) : sl_cs(*pcs) {}
|
|
CTSingleLock::~CTSingleLock(void) {}
|
|
void CTSingleLock::Lock(void) {}
|
|
BOOL CTSingleLock::TryToLock(void) { return(TRUE); }
|
|
BOOL CTSingleLock::IsLocked(void) { return(TRUE); }
|
|
void CTSingleLock::Unlock(void) {}
|
|
|
|
// end of NullSynchronization.cpp ...
|
|
|