Flutter Engine
The Flutter Engine
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) { \
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()
void Init()
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32

Definition at line 17 of file thread_pool_test.cc.