SimpleKernel 1.17.0
Loading...
Searching...
No Matches
BaseEnvTest Class Reference
Inheritance diagram for BaseEnvTest:
Inheritance graph
Collaboration diagram for BaseEnvTest:
Collaboration graph

Protected Member Functions

void SetUp () override
 
void TearDown () override
 

Protected Attributes

test_env::TestEnvironmentState env_state_
 

Detailed Description

Definition at line 98 of file vfs_test.cpp.

Member Function Documentation

◆ SetUp()

void BaseEnvTest::SetUp ( )
inlineoverrideprotected

Definition at line 100 of file vfs_test.cpp.

100 {
103 env_state_.BindThreadToCore(std::this_thread::get_id(), 0);
104 }
test_env::TestEnvironmentState env_state_
Definition vfs_test.cpp:106
void BindThreadToCore(std::thread::id tid, size_t core_id)
将指定线程绑定到核心
void InitializeCores(size_t num_cores)
初始化指定数量的核心
void SetCurrentThreadEnvironment()
设置当前线程的环境实例指针
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TearDown()

void BaseEnvTest::TearDown ( )
inlineoverrideprotected

Definition at line 105 of file vfs_test.cpp.

void ClearCurrentThreadEnvironment()
清除当前线程的环境实例指针
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ env_state_

test_env::TestEnvironmentState BaseEnvTest::env_state_
protected

Definition at line 106 of file vfs_test.cpp.


The documentation for this class was generated from the following file: