Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Functions
thread_pool_test.cc File Reference
#include "vm/thread_pool.h"
#include "vm/lockers.h"
#include "vm/os.h"
#include "vm/unit_test.h"

Go to the source code of this file.

Classes

class  dart::TestTask
 
class  dart::SleepTask
 
class  dart::SpawnTask
 

Namespaces

namespace  dart
 

Macros

#define THREAD_POOL_UNIT_TEST_CASE(name)
 

Functions

 dart::DECLARE_FLAG (int, worker_timeout_millis)
 
 dart::THREAD_POOL_UNIT_TEST_CASE (ThreadPool_Create)
 
 dart::THREAD_POOL_UNIT_TEST_CASE (ThreadPool_RunOne)
 
 dart::THREAD_POOL_UNIT_TEST_CASE (ThreadPool_RunMany)
 
 dart::THREAD_POOL_UNIT_TEST_CASE (ThreadPool_WorkerShutdown)
 
 dart::THREAD_POOL_UNIT_TEST_CASE (ThreadPool_WorkerTimeout)
 
 dart::THREAD_POOL_UNIT_TEST_CASE (ThreadPool_RecursiveSpawn)
 

Macro Definition Documentation

◆ THREAD_POOL_UNIT_TEST_CASE

#define THREAD_POOL_UNIT_TEST_CASE (   name)
Value:
static void name##helper(); \
UNIT_TEST_CASE(name) { \
OSThread::Init(); \
name##helper(); \
/* Delete the current thread's TLS and set it's TLS to null. */ \
/* If it is the last thread then the destructor would call */ \
/* OSThread::Cleanup. */ \
OSThread* os_thread = OSThread::Current(); \
OSThread::SetCurrent(nullptr); \
delete os_thread; \
} \
void name##helper()
const char * name
Definition fuchsia.cc:50

Definition at line 17 of file thread_pool_test.cc.

19 { \
20 OSThread::Init(); \
21 name##helper(); \
22 /* Delete the current thread's TLS and set it's TLS to null. */ \
23 /* If it is the last thread then the destructor would call */ \
24 /* OSThread::Cleanup. */ \
25 OSThread* os_thread = OSThread::Current(); \
26 OSThread::SetCurrent(nullptr); \
27 delete os_thread; \
28 } \
29 void name##helper()