aboutsummaryrefslogtreecommitdiffstats
path: root/vm_core.h
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-03-30 16:36:31 +0900
committerGitHub <noreply@github.com>2022-03-30 20:36:31 +1300
commit42a0bed351979cb4a59c641fa5f03e49609561fd (patch)
tree615a891e8fa9fbf6f3747d070fc03302341974dc /vm_core.h
parent8d27d00af514153819e44eb8e5f4f8631830ae55 (diff)
downloadruby-42a0bed351979cb4a59c641fa5f03e49609561fd.tar.gz
Prefix ccan headers (#4568)
* Prefixed ccan headers * Remove unprefixed names in ccan/build_assert * Remove unprefixed names in ccan/check_type * Remove unprefixed names in ccan/container_of * Remove unprefixed names in ccan/list Co-authored-by: Samuel Williams <samuel.williams@oriontransfer.co.nz>
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/vm_core.h b/vm_core.h
index d985bd40ba..56013cf492 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -628,7 +628,7 @@ typedef struct rb_vm_struct {
VALUE self;
struct {
- struct list_head set;
+ struct ccan_list_head set;
unsigned int cnt;
unsigned int blocking_cnt;
@@ -658,9 +658,9 @@ typedef struct rb_vm_struct {
rb_serial_t fork_gen;
rb_nativethread_lock_t waitpid_lock;
- struct list_head waiting_pids; /* PID > 0: <=> struct waitpid_state */
- struct list_head waiting_grps; /* PID <= 0: <=> struct waitpid_state */
- struct list_head waiting_fds; /* <=> struct waiting_fd */
+ struct ccan_list_head waiting_pids; /* PID > 0: <=> struct waitpid_state */
+ struct ccan_list_head waiting_grps; /* PID <= 0: <=> struct waitpid_state */
+ struct ccan_list_head waiting_fds; /* <=> struct waiting_fd */
/* set in single-threaded processes only: */
volatile int ubf_async_safe;
@@ -701,7 +701,7 @@ typedef struct rb_vm_struct {
int src_encoding_index;
/* workqueue (thread-safe, NOT async-signal-safe) */
- struct list_head workqueue; /* <=> rb_workqueue_job.jnode */
+ struct ccan_list_head workqueue; /* <=> rb_workqueue_job.jnode */
rb_nativethread_lock_t workqueue_lock;
VALUE orig_progname, progname;
@@ -998,7 +998,7 @@ typedef struct rb_ractor_struct rb_ractor_t;
#endif
typedef struct rb_thread_struct {
- struct list_node lt_node; // managed by a ractor
+ struct ccan_list_node lt_node; // managed by a ractor
VALUE self;
rb_ractor_t *ractor;
rb_vm_t *vm;
@@ -1769,11 +1769,11 @@ void rb_thread_wakeup_timer_thread(int);
static inline void
rb_vm_living_threads_init(rb_vm_t *vm)
{
- list_head_init(&vm->waiting_fds);
- list_head_init(&vm->waiting_pids);
- list_head_init(&vm->workqueue);
- list_head_init(&vm->waiting_grps);
- list_head_init(&vm->ractor.set);
+ ccan_list_head_init(&vm->waiting_fds);
+ ccan_list_head_init(&vm->waiting_pids);
+ ccan_list_head_init(&vm->workqueue);
+ ccan_list_head_init(&vm->waiting_grps);
+ ccan_list_head_init(&vm->ractor.set);
}
typedef int rb_backtrace_iter_func(void *, VALUE, int, VALUE);