diff options
author | Keith Bostic <keith.bostic@mongodb.com> | 2016-08-15 22:30:53 -0400 |
---|---|---|
committer | Michael Cahill <michael.cahill@mongodb.com> | 2016-08-16 12:30:53 +1000 |
commit | 0e8a887c8c7281ab09c5c9d61a30defbdeb58bbf (patch) | |
tree | cbace0a3076eae4d88c1af1c7cd2c300319fb3da /src/include/extern_win.h | |
parent | 8e3c4660dce3c4620aae65493241238d23e9a04a (diff) | |
download | mongo-0e8a887c8c7281ab09c5c9d61a30defbdeb58bbf.tar.gz |
WT-2822 panic mutex and other functions that cannot fail (#2952)
* The pthread mutex implementation of spinlocks lock/unlock functions didn't check the underlying pthread_mutex functions for failure. Panic if pthreads fails.
* Change condition mutex functions to not return errors.
* Change __wt_verbose() to not return errors.
* Make a final panic check before writing anything.
Diffstat (limited to 'src/include/extern_win.h')
-rw-r--r-- | src/include/extern_win.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/extern_win.h b/src/include/extern_win.h index f34dbb270d0..bceb5158c28 100644 --- a/src/include/extern_win.h +++ b/src/include/extern_win.h @@ -11,8 +11,8 @@ extern int __wt_getenv(WT_SESSION_IMPL *session, const char *variable, const cha extern int __wt_win_map(WT_FILE_HANDLE *file_handle, WT_SESSION *wt_session, void *mapped_regionp, size_t *lenp, void *mapped_cookiep) WT_GCC_FUNC_DECL_ATTRIBUTE((warn_unused_result)); extern int __wt_win_unmap(WT_FILE_HANDLE *file_handle, WT_SESSION *wt_session, void *mapped_region, size_t length, void *mapped_cookie) WT_GCC_FUNC_DECL_ATTRIBUTE((warn_unused_result)); extern int __wt_cond_alloc(WT_SESSION_IMPL *session, const char *name, bool is_signalled, WT_CONDVAR **condp) WT_GCC_FUNC_DECL_ATTRIBUTE((warn_unused_result)); -extern int __wt_cond_wait_signal( WT_SESSION_IMPL *session, WT_CONDVAR *cond, uint64_t usecs, bool *signalled) WT_GCC_FUNC_DECL_ATTRIBUTE((warn_unused_result)); -extern int __wt_cond_signal(WT_SESSION_IMPL *session, WT_CONDVAR *cond) WT_GCC_FUNC_DECL_ATTRIBUTE((warn_unused_result)); +extern void __wt_cond_wait_signal( WT_SESSION_IMPL *session, WT_CONDVAR *cond, uint64_t usecs, bool *signalled); +extern void __wt_cond_signal(WT_SESSION_IMPL *session, WT_CONDVAR *cond); extern int __wt_cond_destroy(WT_SESSION_IMPL *session, WT_CONDVAR **condp) WT_GCC_FUNC_DECL_ATTRIBUTE((warn_unused_result)); extern int __wt_once(void (*init_routine)(void)) WT_GCC_FUNC_DECL_ATTRIBUTE((warn_unused_result)); extern int __wt_get_vm_pagesize(void) WT_GCC_FUNC_DECL_ATTRIBUTE((warn_unused_result)); |