Skip to content

Commit 63ea825

Browse files
author
Aidan Lee
committed
Remove timed wait which isn't actually used anywhere
1 parent b775337 commit 63ea825

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

include/hx/thread/ConditionVariable.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ namespace hx
1818
bool tryAcquire();
1919
void release();
2020
void wait();
21-
bool timedWait(double seconds);
2221
void signal();
2322
void broadcast();
2423

src/hx/thread/ConditionVariable.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,6 @@ void hx::thread::ConditionVariable_obj::wait()
4444
impl->condition.wait(impl->mutex);
4545
}
4646

47-
bool hx::thread::ConditionVariable_obj::timedWait(double seconds)
48-
{
49-
hx::AutoGCFreeZone zone;
50-
51-
return impl->condition.wait_for(impl->mutex, std::chrono::duration<double>(seconds)) == std::cv_status::no_timeout;
52-
}
53-
5447
void hx::thread::ConditionVariable_obj::signal()
5548
{
5649
impl->condition.notify_one();

0 commit comments

Comments
 (0)