summaryrefslogtreecommitdiff
path: root/thread_pthread.h
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-28 00:24:08 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-28 00:24:08 +0000
commit4d9c23772ff75b88aa397d913a0477f233d38541 ()
tree702448b9753e7345484fd4be4d937f77a15720d6 /thread_pthread.h
parentfcaf874585df8984a23fb89a81bff522cc0ea52e (diff)
thread_pthread.h: rename `gvl.acquired' to `gvl.owner' and document
`acquired' was an old boolean variable, but nowadays it is a rb_thread_t pointer; "gvl.owner" seems like a more appropriate name. And document the contended path including waitq, timer, and timer_err. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--thread_pthread.h18
1 files changed, 14 insertions, 4 deletions
@@ -47,11 +47,21 @@ typedef struct native_thread_data_struct {
typedef struct rb_global_vm_lock_struct {
/* fast path */
- const struct rb_thread_struct *acquired;
- rb_nativethread_lock_t lock;
- /* slow path */
- struct list_head waitq;
const struct rb_thread_struct *timer;
int timer_err;