C++ conversions (#111)
* Remove version from artifact name * Target C++ 20 and higher * Use cpp string * Better crash implementation * String utils in cpp style * Replace parameter methods with start() method * MutexType to Mutex::Type * Kernel c to cpp style * Cleanup event flag * More cpp conversions * Test fixes * Updated ideas docs
This commit is contained in:
committed by
GitHub
parent
d52fe52d96
commit
42e843b463
@@ -11,7 +11,7 @@ static int thread_with_mutex_parameter(void* parameter) {
|
||||
}
|
||||
|
||||
TEST_CASE("a mutex can block a thread") {
|
||||
auto* mutex = tt_mutex_alloc(MutexTypeNormal);
|
||||
auto* mutex = tt_mutex_alloc(Mutex::TypeNormal);
|
||||
tt_mutex_acquire(mutex, TtWaitForever);
|
||||
|
||||
Thread* thread = new Thread(
|
||||
@@ -22,12 +22,12 @@ TEST_CASE("a mutex can block a thread") {
|
||||
);
|
||||
thread->start();
|
||||
|
||||
delay_ms(5);
|
||||
kernel::delayMillis(5);
|
||||
CHECK_EQ(thread->getState(), Thread::StateRunning);
|
||||
|
||||
tt_mutex_release(mutex);
|
||||
|
||||
delay_ms(5);
|
||||
kernel::delayMillis(5);
|
||||
CHECK_EQ(thread->getState(), Thread::StateStopped);
|
||||
|
||||
thread->join();
|
||||
|
||||
Reference in New Issue
Block a user