mirror of
https://sourceware.org/git/glibc.git
synced 2025-11-02 09:33:31 +03:00
misc: Add twalk_r function
The twalk function is very difficult to use in a multi-threaded program because there is no way to pass external state to the iterator function. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
@@ -23,6 +23,8 @@ extern void *__tdelete (const void *__key, void **__rootp,
|
||||
libc_hidden_proto (__tdelete)
|
||||
extern void __twalk (const void *__root, __action_fn_t action);
|
||||
libc_hidden_proto (__twalk)
|
||||
extern __typeof__ (twalk_r) __twalk_r;
|
||||
libc_hidden_proto (__twalk_r)
|
||||
extern void __tdestroy (void *__root, __free_fn_t freefct);
|
||||
libc_hidden_proto (__tdestroy)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user