mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 22:39:58 -04:00
eliminate detach
This commit is contained in:
parent
7c93964aaf
commit
d3239a41d1
3 changed files with 0 additions and 12 deletions
|
|
@ -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…
Reference in a new issue