summaryrefslogtreecommitdiff
path: root/src/include/os_windows.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/os_windows.h')
-rw-r--r--src/include/os_windows.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/include/os_windows.h b/src/include/os_windows.h
index c1e5f788dc6..ea54d00af1f 100644
--- a/src/include/os_windows.h
+++ b/src/include/os_windows.h
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2014-2016 MongoDB, Inc.
+ * Copyright (c) 2014-2017 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -12,7 +12,10 @@
*/
typedef CONDITION_VARIABLE wt_cond_t;
typedef CRITICAL_SECTION wt_mutex_t;
-typedef HANDLE wt_thread_t;
+typedef struct {
+ bool created;
+ HANDLE id;
+} wt_thread_t;
/*
* Thread callbacks need to match the return signature of _beginthreadex.
@@ -39,9 +42,9 @@ struct timespec {
* These are POSIX types which Windows lacks
* Eventually WiredTiger will migrate away from these types
*/
-typedef uint32_t u_int;
+typedef unsigned int u_int;
typedef unsigned char u_char;
-typedef uint64_t u_long;
+typedef unsigned long u_long;
/*
* Windows does have ssize_t