mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 05:28:00 +00:00
eliminate detach
This commit is contained in:
parent
7c93964aaf
commit
d3239a41d1
@ -17,10 +17,6 @@ typedef isc_threadresult_t (*isc_threadfunc_t)(isc_threadarg_t);
|
||||
((pthread_create((tp), NULL, (s), (a)) == 0) ? \
|
||||
ISC_R_SUCCESS : ISC_R_UNEXPECTED)
|
||||
|
||||
#define isc_thread_detach(t) \
|
||||
((pthread_detach((t)) == 0) ? \
|
||||
ISC_R_SUCCESS : ISC_R_UNEXPECTED)
|
||||
|
||||
#define isc_thread_join(t, rp) \
|
||||
((pthread_join((t), (rp)) == 0) ? \
|
||||
ISC_R_SUCCESS : ISC_R_UNEXPECTED)
|
||||
|
@ -14,7 +14,6 @@ typedef isc_threadresult_t (WINAPI *isc_threadfunc_t)(isc_threadarg_t);
|
||||
isc_result_t isc_thread_create(isc_threadfunc_t, isc_threadarg_t,
|
||||
isc_thread_t *);
|
||||
isc_result_t isc_thread_join(isc_thread_t, isc_threadresult_t *);
|
||||
isc_result_t isc_thread_detach(isc_thread_t);
|
||||
#define isc_thread_self \
|
||||
(unsigned long)GetCurrentThreadId
|
||||
|
||||
|
@ -36,10 +36,3 @@ isc_thread_join(isc_thread_t thread, isc_threadresult_t *rp) {
|
||||
|
||||
return (ISC_R_SUCCESS);
|
||||
}
|
||||
|
||||
isc_result_t isc_thread_detach(isc_thread_t thread) {
|
||||
|
||||
/* XXX */
|
||||
|
||||
return (ISC_R_SUCCESS);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user