Skip to content

Commit ee88235

Browse files
committed
Add Semaphore Chrono stubs
1 parent 3b7eae1 commit ee88235

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

UNITTESTS/stubs/Semaphore_stub.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,21 @@ bool Semaphore::try_acquire_for(uint32_t millisec)
5353
return Semaphore_stub::acquire_return_value;
5454
}
5555

56+
bool Semaphore::try_acquire_for(Kernel::Clock::duration_u32 rel_time)
57+
{
58+
return Semaphore_stub::acquire_return_value;
59+
}
60+
5661
bool Semaphore::try_acquire_until(uint64_t millisec)
5762
{
5863
return Semaphore_stub::acquire_return_value;
5964
}
6065

66+
bool Semaphore::try_acquire_until(Kernel::Clock::time_point abs_time)
67+
{
68+
return Semaphore_stub::acquire_return_value;
69+
}
70+
6171
osStatus Semaphore::release(void)
6272
{
6373
return 0;

0 commit comments

Comments
 (0)