summaryrefslogtreecommitdiff
path: root/includes/Local.h
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-10-09 01:12:50 -0700
committerPixel <pixel@nobis-crew.org>2011-10-09 01:12:50 -0700
commit864eeb3a526b1a32c72e1f31a3e1f23dcc5c7409 (patch)
tree7cc7037e2d7137180a67fb10b29469d4d68e677f /includes/Local.h
parent4f7b984f9f848ba6adae2040c520a97bb5c0e354 (diff)
More work on the Task manager.
Now "Main" is a Task, among the most important changes. Introduced the notion of Events, and managed a coherent task switch. Also, renamed a lot of the variables to have a more coherent naming scheme.
Diffstat (limited to 'includes/Local.h')
-rw-r--r--includes/Local.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/Local.h b/includes/Local.h
index e3d08a4..79862a6 100644
--- a/includes/Local.h
+++ b/includes/Local.h
@@ -11,7 +11,7 @@ class TLSManager {
void * createTLS();
};
-extern TLSManager * tlsManager;
+extern TLSManager * g_tlsManager;
class Local : public AtStart {
public:
@@ -27,8 +27,8 @@ class Local : public AtStart {
int getIndex() { return m_idx; }
private:
static void * create() { void * r = malloc(s_size * sizeof(void *)); return r; }
- static void * getTLS() { return tlsManager->getTLS(); }
- static void * setTLS(void * val) { return tlsManager->setTLS(val); }
+ static void * getTLS() { return g_tlsManager->getTLS(); }
+ static void * setTLS(void * val) { return g_tlsManager->setTLS(val); }
virtual void doStart();
int m_idx;
static int s_size;