Lines Matching defs:thread
6 #include "thread-registry.h"
14 * We need to be careful when using other facilities that may use thread registry functions in
24 /* Register the current thread and associate it with a data pointer. */
28 struct registered_thread *thread;
36 list_for_each_entry(thread, ®istry->links, links) {
37 if (thread->task == current) {
39 list_del_rcu(&thread->links);
47 VDO_ASSERT_LOG_ONLY(!found_it, "new thread not already in registry");
51 INIT_LIST_HEAD(&thread->links);
57 struct registered_thread *thread;
61 list_for_each_entry(thread, ®istry->links, links) {
62 if (thread->task == current) {
63 list_del_rcu(&thread->links);
70 VDO_ASSERT_LOG_ONLY(found_it, "thread found in registry");
74 INIT_LIST_HEAD(&thread->links);
80 struct registered_thread *thread;
84 list_for_each_entry_rcu(thread, ®istry->links, links) {
85 if (thread->task == current) {
86 result = thread->pointer;