fix delete operator() for Event
Some checks failed
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 55s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Successful in 1m11s
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 1m8s
linux-x64-gcc / linux-gcc (push) Failing after 1m22s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Successful in 1m29s
linux-mips64-gcc / linux-gcc-mips64el (push) Failing after 1m5s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Successful in 1m18s
Some checks failed
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 55s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Successful in 1m11s
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 1m8s
linux-x64-gcc / linux-gcc (push) Failing after 1m22s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Successful in 1m29s
linux-mips64-gcc / linux-gcc-mips64el (push) Failing after 1m5s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Successful in 1m18s
This commit is contained in:
parent
e370bc2e35
commit
334c1d9572
@ -49,16 +49,10 @@ ulib::Event::Wait(int give_up_after_ms)
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
ulib::Event::operator()() const
|
||||
{
|
||||
return event_status_;
|
||||
}
|
||||
|
||||
ulib::Event::IsEventSetChecker::IsEventSetChecker(const ulib::Event &event) : event_(event) {}
|
||||
|
||||
bool
|
||||
ulib::Event::IsEventSetChecker::operator()()
|
||||
ulib::Event::IsEventSetChecker::operator()() const
|
||||
{
|
||||
return event_.event_status_;
|
||||
}
|
||||
|
@ -23,13 +23,12 @@ public:
|
||||
* @return
|
||||
*/
|
||||
bool Wait(int give_up_after_ms = -1);
|
||||
bool operator()() const;
|
||||
|
||||
private:
|
||||
class IsEventSetChecker {
|
||||
public:
|
||||
IsEventSetChecker(const Event &);
|
||||
bool operator()();
|
||||
bool operator()() const;
|
||||
|
||||
private:
|
||||
const Event &event_;
|
||||
|
@ -10,7 +10,6 @@ class EventTest : public ::testing::Test {
|
||||
public:
|
||||
void SetUp() override
|
||||
{
|
||||
EXPECT_FALSE(event_());
|
||||
EXPECT_FALSE(event_.Wait(100));
|
||||
|
||||
consumer_count_ = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user