diff options
author | Martin Sustrik <sustrik@250bpm.cpm> | 2012-02-16 10:06:30 +0900 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-02-16 10:06:30 +0900 |
commit | fb1209c72bbfd431b61fa4588785586d24ef67c9 (patch) | |
tree | 6c33ac55809c64e57e44b347879fe297e894be5e /include | |
parent | 0d384b7944c20f3389c2be9363afac99783d776a (diff) |
More MSVC tests added
Signed-off-by: Martin Sustrik <sustrik@250bpm.cpm>
Diffstat (limited to 'include')
-rw-r--r-- | include/xs_utils.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/xs_utils.h b/include/xs_utils.h index c1171fe..3348aa3 100644 --- a/include/xs_utils.h +++ b/include/xs_utils.h @@ -43,17 +43,23 @@ extern "C" { #endif /* Helper functions are used by perf tests so that they don't have to care */ -/* about minutiae of time-related functions on different OS platforms. */ +/* about minutiae of different OS platforms. */ /* Starts the stopwatch. Returns the handle to the watch. */ XS_EXPORT void *xs_stopwatch_start (void); /* Stops the stopwatch. Returns the number of microseconds elapsed since */ /* the stopwatch was started. */ -XS_EXPORT unsigned long xs_stopwatch_stop (void *watch_); +XS_EXPORT unsigned long xs_stopwatch_stop (void *watch); /* Sleeps for specified number of seconds. */ -XS_EXPORT void xs_sleep (int seconds_); +XS_EXPORT void xs_sleep (int seconds); + +/* Creates a new thread. */ +XS_EXPORT void *xs_thread_create (void (*fn) (void *arg), void* arg); + +/* Wait for thread to finish. */ +XS_EXPORT void xs_thread_join (void *thread); #undef XS_EXPORT |