#include <ecl/thread/thread.hpp>
#include <CppUTest/TestHarness.h>
#include <CppUTest/CommandLineTestRunner.h>
#include <cstring>
#include <thread>
|
static ecl::err | dummy_routine (void *arg) |
|
| TEST_GROUP (not_started_native_thread) |
|
| TEST (not_started_native_thread, get_name_test) |
|
| TEST (not_started_native_thread, set_name_test) |
|
| TEST (not_started_native_thread, set_stack_size) |
|
| TEST (not_started_native_thread, set_routine) |
|
| TEST (not_started_native_thread, join) |
|
| TEST (not_started_native_thread, detach) |
|
static ecl::err | test_routine (void *arg) |
|
| TEST_GROUP (started_native_thread) |
|
| TEST (started_native_thread, basic) |
|
| TEST (started_native_thread, get_name_test) |
|
| TEST (started_native_thread, set_name_test) |
|
| TEST (started_native_thread, join_with_parameter) |
|
| TEST_GROUP (detached_native_thread) |
|
| TEST (detached_native_thread, basic) |
|
int | main (int argc, char *argv[]) |
|
◆ dummy_routine()
static ecl::err dummy_routine |
( |
void * |
arg | ) |
|
|
static |
◆ TEST_GROUP() [1/3]
TEST_GROUP |
( |
not_started_native_thread |
| ) |
|
◆ TEST() [1/11]
TEST |
( |
not_started_native_thread |
, |
|
|
get_name_test |
|
|
) |
| |
◆ TEST() [2/11]
TEST |
( |
not_started_native_thread |
, |
|
|
set_name_test |
|
|
) |
| |
◆ TEST() [3/11]
TEST |
( |
not_started_native_thread |
, |
|
|
set_stack_size |
|
|
) |
| |
◆ TEST() [4/11]
TEST |
( |
not_started_native_thread |
, |
|
|
set_routine |
|
|
) |
| |
◆ TEST() [5/11]
TEST |
( |
not_started_native_thread |
, |
|
|
join |
|
|
) |
| |
◆ TEST() [6/11]
TEST |
( |
not_started_native_thread |
, |
|
|
detach |
|
|
) |
| |
◆ test_routine()
static ecl::err test_routine |
( |
void * |
arg | ) |
|
|
static |
◆ TEST_GROUP() [2/3]
TEST_GROUP |
( |
started_native_thread |
| ) |
|
◆ TEST() [7/11]
TEST |
( |
started_native_thread |
, |
|
|
basic |
|
|
) |
| |
◆ TEST() [8/11]
TEST |
( |
started_native_thread |
, |
|
|
get_name_test |
|
|
) |
| |
◆ TEST() [9/11]
TEST |
( |
started_native_thread |
, |
|
|
set_name_test |
|
|
) |
| |
◆ TEST() [10/11]
TEST |
( |
started_native_thread |
, |
|
|
join_with_parameter |
|
|
) |
| |
◆ TEST_GROUP() [3/3]
TEST_GROUP |
( |
detached_native_thread |
| ) |
|
◆ TEST() [11/11]
TEST |
( |
detached_native_thread |
, |
|
|
basic |
|
|
) |
| |
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
◆ dummy_ctx
◆ name
◆ name_size
◆ routine_arg
◆ started_tr
◆ started_tr_joined_or_detached
bool started_tr_joined_or_detached |
|
static |
◆ detached_tr