summaryrefslogtreecommitdiff
path: root/includes/Task.h
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-12-20 01:34:09 -0800
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-12-20 01:34:09 -0800
commit3a91332a70abfc777a352c46727f54426c982371 (patch)
treee2ea6da7b045af8daf749c957b70bdf721864a1e /includes/Task.h
parent28e250cda01038c91fb9b69206c6f61f24764469 (diff)
A few more Win32 / VisualStudio fixes.
Diffstat (limited to 'includes/Task.h')
-rw-r--r--includes/Task.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/includes/Task.h b/includes/Task.h
index 3d206ff..1041d08 100644
--- a/includes/Task.h
+++ b/includes/Task.h
@@ -10,10 +10,6 @@
#include <Exceptions.h>
#include <Printer.h>
-#ifdef _MSC_VER
-#include <Windows.h> // for CALLBACK
-#endif
-
namespace Balau {
namespace Events { class BaseEvent; };
@@ -119,10 +115,6 @@ class Async : public BaseEvent {
ev::async m_evt;
};
-#ifndef _WIN32
-#define CALLBACK
-#endif
-
class Custom : public BaseEvent {
public:
void doSignal() { BaseEvent::doSignal(); ev_break(m_loop, EVBREAK_ALL); }
@@ -180,6 +172,7 @@ class Task {
private:
bool m_oldStatus;
};
+ static void registerTrampoline();
protected:
void yield() throw (GeneralException) {
if (yield(false)) {
@@ -223,7 +216,7 @@ class Task {
void setup(TaskMan * taskMan, void * stack);
static bool needsStacks();
void switchTo();
- static void CALLBACK coroutineTrampoline(void *);
+ static void coroutineTrampoline(void *);
void coroutine();
bool enterSimpleContext() {
bool r;