diff options
| author | Stephen Leake | 2019-04-11 14:00:02 -0700 |
|---|---|---|
| committer | Stephen Leake | 2019-04-11 14:00:02 -0700 |
| commit | 7ba7def5caf7ec9d9bebffff489f0a658229fbda (patch) | |
| tree | e0cfcb59937ca0528fb81769d7d48a904a91f5dc /src/thread.c | |
| parent | 7768581172e11be52b1fcd8224f4594e126bbdb7 (diff) | |
| parent | de238b39e335c6814283faa171b35145f124edf2 (diff) | |
| download | emacs-7ba7def5caf7ec9d9bebffff489f0a658229fbda.tar.gz emacs-7ba7def5caf7ec9d9bebffff489f0a658229fbda.zip | |
Merge commit 'de238b39e335c6814283faa171b35145f124edf2'
Diffstat (limited to 'src/thread.c')
| -rw-r--r-- | src/thread.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/thread.c b/src/thread.c index e51d6144347..670680f2b0d 100644 --- a/src/thread.c +++ b/src/thread.c | |||
| @@ -267,7 +267,7 @@ informational only. */) | |||
| 267 | if (!NILP (name)) | 267 | if (!NILP (name)) |
| 268 | CHECK_STRING (name); | 268 | CHECK_STRING (name); |
| 269 | 269 | ||
| 270 | mutex = ALLOCATE_PSEUDOVECTOR (struct Lisp_Mutex, mutex, PVEC_MUTEX); | 270 | mutex = ALLOCATE_PSEUDOVECTOR (struct Lisp_Mutex, name, PVEC_MUTEX); |
| 271 | memset ((char *) mutex + offsetof (struct Lisp_Mutex, mutex), | 271 | memset ((char *) mutex + offsetof (struct Lisp_Mutex, mutex), |
| 272 | 0, sizeof (struct Lisp_Mutex) - offsetof (struct Lisp_Mutex, | 272 | 0, sizeof (struct Lisp_Mutex) - offsetof (struct Lisp_Mutex, |
| 273 | mutex)); | 273 | mutex)); |
| @@ -386,7 +386,7 @@ informational only. */) | |||
| 386 | if (!NILP (name)) | 386 | if (!NILP (name)) |
| 387 | CHECK_STRING (name); | 387 | CHECK_STRING (name); |
| 388 | 388 | ||
| 389 | condvar = ALLOCATE_PSEUDOVECTOR (struct Lisp_CondVar, cond, PVEC_CONDVAR); | 389 | condvar = ALLOCATE_PSEUDOVECTOR (struct Lisp_CondVar, name, PVEC_CONDVAR); |
| 390 | memset ((char *) condvar + offsetof (struct Lisp_CondVar, cond), | 390 | memset ((char *) condvar + offsetof (struct Lisp_CondVar, cond), |
| 391 | 0, sizeof (struct Lisp_CondVar) - offsetof (struct Lisp_CondVar, | 391 | 0, sizeof (struct Lisp_CondVar) - offsetof (struct Lisp_CondVar, |
| 392 | cond)); | 392 | cond)); |
| @@ -805,7 +805,7 @@ If NAME is given, it must be a string; it names the new thread. */) | |||
| 805 | if (!NILP (name)) | 805 | if (!NILP (name)) |
| 806 | CHECK_STRING (name); | 806 | CHECK_STRING (name); |
| 807 | 807 | ||
| 808 | new_thread = ALLOCATE_PSEUDOVECTOR (struct thread_state, m_stack_bottom, | 808 | new_thread = ALLOCATE_PSEUDOVECTOR (struct thread_state, event_object, |
| 809 | PVEC_THREAD); | 809 | PVEC_THREAD); |
| 810 | memset ((char *) new_thread + offset, 0, | 810 | memset ((char *) new_thread + offset, 0, |
| 811 | sizeof (struct thread_state) - offset); | 811 | sizeof (struct thread_state) - offset); |
| @@ -1064,7 +1064,7 @@ static void | |||
| 1064 | init_main_thread (void) | 1064 | init_main_thread (void) |
| 1065 | { | 1065 | { |
| 1066 | main_thread.s.header.size | 1066 | main_thread.s.header.size |
| 1067 | = PSEUDOVECSIZE (struct thread_state, m_stack_bottom); | 1067 | = PSEUDOVECSIZE (struct thread_state, event_object); |
| 1068 | XSETPVECTYPE (&main_thread.s, PVEC_THREAD); | 1068 | XSETPVECTYPE (&main_thread.s, PVEC_THREAD); |
| 1069 | main_thread.s.m_last_thing_searched = Qnil; | 1069 | main_thread.s.m_last_thing_searched = Qnil; |
| 1070 | main_thread.s.m_saved_last_thing_searched = Qnil; | 1070 | main_thread.s.m_saved_last_thing_searched = Qnil; |