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

View File

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

View File

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

View File

@ -85,7 +85,7 @@ public:
void gravity_cleanup(); void gravity_cleanup();
void gravity_update_async(); 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 update_grav_async();
void start_grav_async(); void start_grav_async();

View File

@ -41,7 +41,7 @@ protected:
virtual void before(); virtual void before();
virtual void after(); virtual void after();
virtual bool doWork(); 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 notifyProgress(int progress);
virtual void notifyError(std::string error); virtual void notifyError(std::string error);