Home | History | Annotate | Download | only in test

Lines Matching defs:thread

9 #include "osi/include/thread.h"
14 thread_t* thread = thread_new("test_thread");
15 ASSERT_TRUE(thread != NULL);
16 thread_free(thread);
20 thread_t* thread = thread_new("test_thread");
21 thread_free(thread);
25 thread_t* thread = thread_new("test_name");
26 ASSERT_STREQ(thread_name(thread), "test_name");
27 thread_free(thread);
31 thread_t* thread = thread_new("0123456789abcdef");
32 ASSERT_STREQ("0123456789abcdef", thread_name(thread));
33 thread_free(thread);
37 thread_t* thread = thread_new("0123456789abcdefg");
38 ASSERT_STREQ("0123456789abcdef", thread_name(thread));
39 thread_free(thread);
43 thread_t* thread = (thread_t*)context;
44 EXPECT_TRUE(thread_is_self(thread));
48 thread_t* thread = thread_new("test_thread");
49 thread_post(thread, thread_is_self_fn, thread);
50 thread_free(thread);
54 thread_t* thread = thread_new("test_thread");
55 EXPECT_FALSE(thread_is_self(thread));
56 thread_free(thread);