(svn r2807) Fix two major bugs in the threaded save code:

- Do not dereference a local variable which no longer exists; this lead to random crashes when saving
- (Win32) Do not close a handle before it is used last
There are still many major problems (race conditions and resulting memory corruption/crashes) left
This commit is contained in:
tron
2005-08-05 08:24:12 +00:00
parent 647fe2e866
commit a86e9689df
5 changed files with 3 additions and 19 deletions

2
unix.c
View File

@@ -530,8 +530,6 @@ bool CreateOTTDThread(void *func, void *param)
return pthread_create(&thread1, NULL, func, param) == 0;
}
void CloseOTTDThread(void) {return;}
void JoinOTTDThread(void)
{
if (thread1 == 0) return;