Permalink
Browse files

Decorate thread entry points in headers

  • Loading branch information...
simtr committed Aug 15, 2014
1 parent fc787ce commit 0d617ace7b8011c1e73ffca60e416dd318ed3cdb
@@ -7,6 +7,7 @@
#include <pthread.h>
#undef GetUserName //God dammit microsoft!
#include "Config.h"
#include "Singleton.h"
class GameSave;
@@ -39,7 +40,7 @@ class RequestBroker: public Singleton<RequestBroker>
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();
@@ -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();
}
@@ -42,13 +42,13 @@ class SearchModel
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();
@@ -85,7 +85,7 @@ class Gravity
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();
@@ -41,7 +41,7 @@ class Task {
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);

0 comments on commit 0d617ac

Please sign in to comment.