mirror of
https://github.com/glest/glest-source.git
synced 2025-08-17 21:51:17 +02:00
- fix headless server crash due to new call to setgama in headless mode
- a few code optimizations to start to improve performance
This commit is contained in:
@@ -258,13 +258,13 @@ void ReadWriteMutex::UnLockRead() {
|
||||
void ReadWriteMutex::LockWrite() {
|
||||
MutexSafeWrapper safeMutex(&mutex);
|
||||
uint32 totalLocks = maxReaders();
|
||||
for (int i = 0; i < totalLocks; ++i) {
|
||||
for(unsigned int i = 0; i < totalLocks; ++i) {
|
||||
semaphore.waitTillSignalled();
|
||||
}
|
||||
}
|
||||
void ReadWriteMutex::UnLockWrite() {
|
||||
uint32 totalLocks = maxReaders();
|
||||
for (int i = 0; i < totalLocks; ++i) {
|
||||
for(unsigned int i = 0; i < totalLocks; ++i) {
|
||||
semaphore.signal();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user