Image %!s(int64=4) %!d(string=hai) anos
pai
achega
9aa88aae75
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      EQ2/source/common/database.cpp

+ 2 - 0
EQ2/source/common/database.cpp

@@ -381,6 +381,7 @@ void Database::RunAsyncQueries(int32 queryid)
 #ifdef WIN32
 		_beginthread(DBAsyncQueries, 0, (void*)tmp);
 #else
+		pthread_t t1;
 		pthread_create(&t1, NULL, DBAsyncQueries, (void*)tmp);
 		pthread_detach(t1);
 #endif
@@ -423,6 +424,7 @@ void Database::AddAsyncQuery(Query* query)
 #ifdef WIN32
 	_beginthread(DBAsyncQueries, 0, (void*)tmp);
 #else
+	pthread_t t1;
 	pthread_create(&t1, NULL, DBAsyncQueries, (void*)tmp);
 	pthread_detach(t1);
 #endif