From 3de05fe7cbc2328378e9122a920036feba7a6a7d Mon Sep 17 00:00:00 2001 From: shennetsind Date: Mon, 6 Aug 2012 01:47:50 +0000 Subject: Hello World! with this commit trunk will finally be making use of the gorgeous stuff sirius_black last implemented. we want to make sure everything related to this feature is working as intended so for now its being released under a optional define, after the features stability is confirmed the define will be removed along with the previous processings of the feature. By enabling BETA_THREAD_TEST in /src/config/core.h all your mysql logs, query_sql and query_logsql script functions will be handled by a different thread, therefore any slow queries won't have any effect (e.g. slow down) on the game server. Everyone is welcome on helping us test and debug the features, be aware however I DO NOT RECOMMEND YOU TO ENABLE THIS ON PRODUCTION SERVERS AS OF NOW (which is why while we're all testing it still is a optional feature). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16588 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/thread.c') diff --git a/src/common/thread.c b/src/common/thread.c index baf4171da..315b310b2 100644 --- a/src/common/thread.c +++ b/src/common/thread.c @@ -271,7 +271,7 @@ int rathread_get_tid(){ #ifdef WIN32 return (int)GetCurrentThreadId(); #else - return (int)pthread_self(); + return (intptr_t)pthread_self(); #endif #endif -- cgit v1.2.3-60-g2f50