Decorate thread entry points in headers

This commit is contained in:
Simon Robertshaw 2014-08-15 22:50:28 +01:00
parent fc787cee9a
commit 0d617ace7b
5 changed files with 7 additions and 6 deletions

View File

@ -7,6 +7,7 @@
#include <pthread.h>
#undef GetUserName //God dammit microsoft!
#include "Config.h"
#include "Singleton.h"
class GameSave;
@ -39,7 +40,7 @@ private:
std::vector<Request*> requestQueue;
std::vector<Request*> activeRequests;
static void * thumbnailQueueProcessHelper(void * ref);
TH_ENTRY_POINT static void * thumbnailQueueProcessHelper(void * ref);
void thumbnailQueueProcessTH();
void assureRunning();

View File

@ -47,7 +47,7 @@ void * SearchModel::updateSaveListT()
return saveList;
}
void * SearchModel::updateTagListTHelper(void * obj)
TH_ENTRY_POINT void * SearchModel::updateTagListTHelper(void * obj)
{
return ((SearchModel *)obj)->updateTagListT();
}

View File

@ -42,13 +42,13 @@ private:
bool updateSaveListWorking;
volatile bool updateSaveListFinished;
pthread_t updateSaveListThread;
static void * updateSaveListTHelper(void * obj);
TH_ENTRY_POINT static void * updateSaveListTHelper(void * obj);
void * updateSaveListT();
bool updateTagListWorking;
volatile bool updateTagListFinished;
pthread_t updateTagListThread;
static void * updateTagListTHelper(void * obj);
TH_ENTRY_POINT static void * updateTagListTHelper(void * obj);
void * updateTagListT();
public:
SearchModel();

View File

@ -85,7 +85,7 @@ public:
void gravity_cleanup();
void gravity_update_async();
static void *update_grav_async_helper(void * context);
TH_ENTRY_POINT static void *update_grav_async_helper(void * context);
void update_grav_async();
void start_grav_async();

View File

@ -41,7 +41,7 @@ protected:
virtual void before();
virtual void after();
virtual bool doWork();
static void * doWork_helper(void * ref);
TH_ENTRY_POINT static void * doWork_helper(void * ref);
virtual void notifyProgress(int progress);
virtual void notifyError(std::string error);