Skip to content

Commit

Permalink
Decorate thread entry points in headers
Browse files Browse the repository at this point in the history
  • Loading branch information
simtr committed Aug 15, 2014
1 parent fc787ce commit 0d617ac
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/client/requestbroker/RequestBroker.h
Expand Up @@ -7,6 +7,7 @@
#include <pthread.h>
#undef GetUserName //God dammit microsoft!

#include "Config.h"
#include "Singleton.h"

class GameSave;
Expand Down Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion src/gui/search/SearchModel.cpp
Expand Up @@ -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();
}
Expand Down
4 changes: 2 additions & 2 deletions src/gui/search/SearchModel.h
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/simulation/Gravity.h
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/tasks/Task.h
Expand Up @@ -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);
Expand Down

0 comments on commit 0d617ac

Please sign in to comment.