summaryrefslogtreecommitdiffstats
path: root/src/uscxml/concurrency/tinythread.h
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-06-24 13:03:20 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-06-24 13:03:20 (GMT)
commit758bda908ded461c9d34d274a18454ffba4b7450 (patch)
treefb7f1ba28eab9f20b4ca16ed4dbc36d07dfce06e /src/uscxml/concurrency/tinythread.h
parentfebde41c4c69d8f38967d5c195328d468834d037 (diff)
downloaduscxml-758bda908ded461c9d34d274a18454ffba4b7450.zip
uscxml-758bda908ded461c9d34d274a18454ffba4b7450.tar.gz
uscxml-758bda908ded461c9d34d274a18454ffba4b7450.tar.bz2
- Prolog DM compiles with recent SWI release again
- Bugfixes for stress test - Beautified code
Diffstat (limited to 'src/uscxml/concurrency/tinythread.h')
-rw-r--r--src/uscxml/concurrency/tinythread.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uscxml/concurrency/tinythread.h b/src/uscxml/concurrency/tinythread.h
index a47b46a..9d211f4 100644
--- a/src/uscxml/concurrency/tinythread.h
+++ b/src/uscxml/concurrency/tinythread.h
@@ -435,7 +435,7 @@ public:
EnterCriticalSection(&mWaitersCountLock);
++ mWaitersCount;
LeaveCriticalSection(&mWaitersCountLock);
-
+
// Release the mutex while waiting for the condition (will decrease
// the number of waiters when done)...
aMutex.unlock();
@@ -444,7 +444,7 @@ public:
#else
struct timeval tv;
gettimeofday(&tv, NULL);
-
+
struct timespec ts;
ts.tv_sec = tv.tv_sec + (ms / 1000);
ts.tv_nsec = (tv.tv_usec * 1000); // convert tv microseconds to nanoseconds