mirror of git://sourceware.org/git/glibc.git
htl: move __pthread_thread_{alloc, start, terminate} into libc.
Message-ID: <20250815181500.107433-6-gfleury@disroot.org>
This commit is contained in:
parent
450912d5db
commit
c3abc99cb0
|
|
@ -37,9 +37,6 @@ libpthread-routines := \
|
|||
pt-mutex-transfer-np \
|
||||
pt-hurd-cond-wait \
|
||||
pt-hurd-cond-timedwait \
|
||||
pt-thread-alloc \
|
||||
pt-thread-start \
|
||||
pt-thread-terminate \
|
||||
pt-startup \
|
||||
pt-docancel \
|
||||
pt-sysdep \
|
||||
|
|
@ -208,6 +205,9 @@ routines := \
|
|||
pt-sigstate \
|
||||
pt-sigstate-destroy \
|
||||
pt-stack-alloc \
|
||||
pt-thread-alloc \
|
||||
pt-thread-start \
|
||||
pt-thread-terminate \
|
||||
pt-timedblock \
|
||||
pt-timedblock-intr \
|
||||
pt-wakeup \
|
||||
|
|
|
|||
|
|
@ -248,6 +248,9 @@ libc {
|
|||
__pthread_stack_alloc;
|
||||
__pthread_timedblock;
|
||||
__pthread_timedblock_intr;
|
||||
__pthread_thread_alloc;
|
||||
__pthread_thread_start;
|
||||
__pthread_thread_terminate;
|
||||
__pthread_wakeup;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -247,9 +247,11 @@ extern int __pthread_setup (struct __pthread *__restrict thread,
|
|||
/* Allocate a kernel thread (and any miscellaneous system dependent
|
||||
resources) for THREAD; it must not be placed on the run queue. */
|
||||
extern int __pthread_thread_alloc (struct __pthread *thread);
|
||||
libc_hidden_proto (__pthread_thread_alloc)
|
||||
|
||||
/* Start THREAD making it eligible to run. */
|
||||
extern int __pthread_thread_start (struct __pthread *thread);
|
||||
libc_hidden_proto (__pthread_thread_start)
|
||||
|
||||
/* Terminate the kernel thread associated with THREAD, and deallocate its
|
||||
stack as well as any other kernel resource associated with it.
|
||||
|
|
@ -263,7 +265,7 @@ extern int __pthread_thread_start (struct __pthread *thread);
|
|||
has started, no other thread can terminate it, so that thread-local
|
||||
variables created by that thread are correctly released. */
|
||||
extern void __pthread_thread_terminate (struct __pthread *thread);
|
||||
|
||||
libc_hidden_proto (__pthread_thread_terminate)
|
||||
|
||||
/* Called by a thread just before it calls the provided start
|
||||
routine. */
|
||||
|
|
|
|||
|
|
@ -92,3 +92,4 @@ __pthread_thread_alloc (struct __pthread *thread)
|
|||
|
||||
return 0;
|
||||
}
|
||||
libc_hidden_def (__pthread_thread_alloc)
|
||||
|
|
|
|||
|
|
@ -51,3 +51,4 @@ __pthread_thread_start (struct __pthread *thread)
|
|||
|
||||
return 0;
|
||||
}
|
||||
libc_hidden_def (__pthread_thread_start)
|
||||
|
|
|
|||
|
|
@ -91,3 +91,4 @@ __pthread_thread_terminate (struct __pthread *thread)
|
|||
/* We are out of luck. */
|
||||
assert_perror (err);
|
||||
}
|
||||
libc_hidden_def (__pthread_thread_terminate)
|
||||
|
|
|
|||
Loading…
Reference in New Issue