summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/include/extern.h
diff options
context:
space:
mode:
authorAndrew Morton <andrew.morton@mongodb.com>2023-05-16 22:21:24 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-05-17 00:50:01 +0000
commite94168acd89dba4faef5e43f970633a781e8cba2 (patch)
tree0d7652f551fe7152fa49512ca1ba7ff730b51e79 /src/third_party/wiredtiger/src/include/extern.h
parentb34244749ab66e8aa761dbc715dad736e3186894 (diff)
downloadmongo-e94168acd89dba4faef5e43f970633a781e8cba2.tar.gz
Import wiredtiger: d310d6330ea5b23835d9eb231f65bb9f91bdef21 from branch mongodb-master
ref: 2a63f4a39c..d310d6330e for: 7.1.0-rc0 WT-11066 Add mechanisms for checking whether a session holds a spinlock
Diffstat (limited to 'src/third_party/wiredtiger/src/include/extern.h')
-rw-r--r--src/third_party/wiredtiger/src/include/extern.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/src/include/extern.h b/src/third_party/wiredtiger/src/include/extern.h
index 4fa14f94f2a..19e55c1feee 100644
--- a/src/third_party/wiredtiger/src/include/extern.h
+++ b/src/third_party/wiredtiger/src/include/extern.h
@@ -2085,6 +2085,10 @@ static inline bool __wt_row_leaf_value_is_encoded(WT_ROW *rip)
WT_GCC_FUNC_DECL_ATTRIBUTE((warn_unused_result));
static inline bool __wt_session_can_wait(WT_SESSION_IMPL *session)
WT_GCC_FUNC_DECL_ATTRIBUTE((warn_unused_result));
+static inline bool __wt_spin_locked(WT_SESSION_IMPL *session, WT_SPINLOCK *t)
+ WT_GCC_FUNC_DECL_ATTRIBUTE((warn_unused_result));
+static inline bool __wt_spin_owned(WT_SESSION_IMPL *session, WT_SPINLOCK *t)
+ WT_GCC_FUNC_DECL_ATTRIBUTE((warn_unused_result));
static inline bool __wt_split_descent_race(WT_SESSION_IMPL *session, WT_REF *ref,
WT_PAGE_INDEX *saved_pindex) WT_GCC_FUNC_DECL_ATTRIBUTE((warn_unused_result));
static inline bool __wt_txn_tw_start_visible(WT_SESSION_IMPL *session, WT_TIME_WINDOW *tw)
@@ -2480,6 +2484,7 @@ static inline void __wt_spin_destroy(WT_SESSION_IMPL *session, WT_SPINLOCK *t);
static inline void __wt_spin_lock(WT_SESSION_IMPL *session, WT_SPINLOCK *t);
static inline void __wt_spin_lock_track(WT_SESSION_IMPL *session, WT_SPINLOCK *t);
static inline void __wt_spin_unlock(WT_SESSION_IMPL *session, WT_SPINLOCK *t);
+static inline void __wt_spin_unlock_if_owned(WT_SESSION_IMPL *session, WT_SPINLOCK *t);
static inline void __wt_struct_size_adjust(WT_SESSION_IMPL *session, size_t *sizep);
static inline void __wt_timing_stress(WT_SESSION_IMPL *session, u_int flag, struct timespec *tsp);
static inline void __wt_timing_stress_sleep_random(WT_SESSION_IMPL *session);