diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-08-11 08:27:04 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-08-11 08:27:04 +0000 |
commit | 7e02ebfd62c3089ef32476ce7e4825b5ec8e1585 (patch) | |
tree | 8b56e37321850ac543280ee0654ab64481747f2b /src/helper/jim-eventloop.c | |
parent | 53e1f9cd0f4de07258a0675b43db741c6ffd5ca7 (diff) | |
download | riscv-openocd-7e02ebfd62c3089ef32476ce7e4825b5ec8e1585.zip riscv-openocd-7e02ebfd62c3089ef32476ce7e4825b5ec8e1585.tar.gz riscv-openocd-7e02ebfd62c3089ef32476ce7e4825b5ec8e1585.tar.bz2 |
place event loop inside #ifdef JIM_EMBEDDED.
git-svn-id: svn://svn.berlios.de/openocd/trunk@903 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper/jim-eventloop.c')
-rw-r--r-- | src/helper/jim-eventloop.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/helper/jim-eventloop.c b/src/helper/jim-eventloop.c index 73bc29b..1e0f477 100644 --- a/src/helper/jim-eventloop.c +++ b/src/helper/jim-eventloop.c @@ -242,6 +242,12 @@ static Jim_TimeEvent *JimSearchNearestTimer(Jim_EventLoop *eventLoop) return nearest; } +/* --- POSIX version of Jim_ProcessEvents, for now the only available --- */ +#define JIM_FILE_EVENTS 1 +#define JIM_TIME_EVENTS 2 +#define JIM_ALL_EVENTS (JIM_FILE_EVENTS|JIM_TIME_EVENTS) +#define JIM_DONT_WAIT 4 + /* Process every pending time event, then every pending file event * (that may be registered by time event callbacks just processed). * Without special flags the function sleeps until some file event |