diff options
author | Luke Chen <luke.chen@mongodb.com> | 2019-08-21 05:23:37 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-08-21 05:23:37 +0000 |
commit | ac41c65f6355f83aac70136324c98561ac79daa1 (patch) | |
tree | a7c3f7ef090b59c6a06838a02c96bd1d49e1c729 /src/third_party/wiredtiger/src/include/os_windows.h | |
parent | f54709196711c63a429b71f47c584661286d675f (diff) | |
download | mongo-ac41c65f6355f83aac70136324c98561ac79daa1.tar.gz |
Import wiredtiger: 7dfd9391862bc9a6d84868c4dc51689c45a3aacf from branch mongodb-4.4
ref: c809757d8b..7dfd939186
for: 4.3.1
WT-4658 Apply Clang Format
WT-4810 Adding WT_ERR_ASSERT and WT_RET_ASSERT macros
WT-5046 Prepared transactions aren't properly cleared from global table with WT_CONN_LOG_DEBUG_MODE enabled
Diffstat (limited to 'src/third_party/wiredtiger/src/include/os_windows.h')
-rw-r--r-- | src/third_party/wiredtiger/src/include/os_windows.h | 39 |
1 files changed, 18 insertions, 21 deletions
diff --git a/src/third_party/wiredtiger/src/include/os_windows.h b/src/third_party/wiredtiger/src/include/os_windows.h index 84619f218a2..a184ff3cfbc 100644 --- a/src/third_party/wiredtiger/src/include/os_windows.h +++ b/src/third_party/wiredtiger/src/include/os_windows.h @@ -7,52 +7,49 @@ */ /* - * Define WT threading and concurrency primitives - * Assumes Windows 7+/2008 R2+ + * Define WT threading and concurrency primitives Assumes Windows 7+/2008 R2+ */ -typedef CONDITION_VARIABLE wt_cond_t; -typedef CRITICAL_SECTION wt_mutex_t; +typedef CONDITION_VARIABLE wt_cond_t; +typedef CRITICAL_SECTION wt_mutex_t; typedef struct { - bool created; - HANDLE id; + bool created; + HANDLE id; } wt_thread_t; /* * Thread callbacks need to match the return signature of _beginthreadex. */ -#define WT_THREAD_CALLBACK(x) unsigned (__stdcall x) -#define WT_THREAD_RET unsigned __stdcall -#define WT_THREAD_RET_VALUE 0 +#define WT_THREAD_CALLBACK(x) unsigned(__stdcall x) +#define WT_THREAD_RET unsigned __stdcall +#define WT_THREAD_RET_VALUE 0 /* * WT declaration for calling convention type */ -#define WT_CDECL __cdecl +#define WT_CDECL __cdecl #if _MSC_VER < 1900 /* Timespec is a POSIX structure not defined in Windows */ struct timespec { - time_t tv_sec; /* seconds */ - long tv_nsec; /* nanoseconds */ + time_t tv_sec; /* seconds */ + long tv_nsec; /* nanoseconds */ }; #endif /* - * Windows Portability stuff - * These are POSIX types which Windows lacks - * Eventually WiredTiger will migrate away from these types + * Windows Portability stuff These are POSIX types which Windows lacks Eventually WiredTiger will + * migrate away from these types */ -typedef unsigned int u_int; -typedef unsigned char u_char; -typedef unsigned long u_long; +typedef unsigned int u_int; +typedef unsigned char u_char; +typedef unsigned long u_long; /* - * Windows does have ssize_t - * Python headers declare also though so we need to guard it + * Windows does have ssize_t Python headers declare also though so we need to guard it */ #ifndef HAVE_SSIZE_T typedef int ssize_t; #endif /* Windows does not provide fsync */ -#define fsync _commit +#define fsync _commit |