summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2013-06-28 15:07:37 +0200
committerAndrea Canciani <ranma42@gmail.com>2013-06-28 19:37:03 +0200
commitf5c51d4eb781f118bc7bf3250dcbc76d9c956ad4 (patch)
treee72cc158237d1d6ad58d132873f8004470604d4f
parent3e58cf57db5d6104b471bdc40fe48f1f3d5f494b (diff)
thrd: Fix some typos in the win32 backend
Some functions were misspelled and some variables were missing.
-rw-r--r--thrd/impl/win32.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/thrd/impl/win32.h b/thrd/impl/win32.h
index 4aba406..027533c 100644
--- a/thrd/impl/win32.h
+++ b/thrd/impl/win32.h
@@ -58,8 +58,8 @@ typedef struct {
static unsigned __stdcall
_simpleops_thrd_win32_wrapper (void *arg)
{
- _simpleops_thrd_main (arg)
- _endthrdex (0);
+ _simpleops_thrd_main (arg);
+ _endthreadex (0);
return 0;
}
@@ -69,12 +69,13 @@ simpleops_thrd_create (simpleops_thrd_t *thr,
void *arg)
{
simpleops_thrd_t t;
+ uintptr_t r;
t = _simpleops_thrd_alloc (func, arg);
if (SIMPLEOPS_UNLIKELY (t == NULL))
return simpleops_thrd_nomem;
- r = _beginthrdex (NULL, 0, _simpleops_thrd_win32_wrapper, t, 0, NULL);
+ r = _beginthreadex (NULL, 0, _simpleops_thrd_win32_wrapper, t, 0, NULL);
if (SIMPLEOPS_UNLIKELY (r == 0)) {
free (t);
return simpleops_thrd_error;