Comments (4)
Thanks for the bug report. It's a racing condition in newly added function CallbackListBase::ownsHandle
. I've fixed it.
Note: ownsHandle
is called in assert
which is only available in debug mode. So this bug can only be reproduced in debug mode, not release mode in which assert
is gone.
from eventpp.
OK, I see. But, unittest still failed to run. it seems to be a deadlock
This is the result of pressing ctrl+c after waiting for a while
from eventpp.
No, it's not dead lock, it's just super slow in debug mode. In debug mode, in CallbackList::remove
, there is an assertion that iterates the whole list, which has 1M items in that test. That results 1M*1M checks and never finish. I'm thinking of removing the assertion.
from eventpp.
I removed the assertion, the unit tests should not be very slow even in debug mode.
from eventpp.
Related Issues (20)
- Crash in winxp HOT 1
- EventQueue是异步的吗?/Is EventQueue asynchronous? HOT 9
- Is there some problem with the insertListener function? HOT 6
- no type named 'Mutex' in 'eventpp::MultipleThreading' HOT 2
- maybe a typo in argumentadapter.md document HOT 2
- Can you add an extra sample code for the Tutorials of EventDispatcher document HOT 10
- Clang compile error HOT 2
- [Question] Are event cbs, after a dispatch, processed async or sync? HOT 2
- Thread safety ? HOT 2
- Confusion about the parameters of the `eventpp::EventQueue.enqueue` HOT 1
- What is the difference between eventpp and libevent/libuv/libev HOT 1
- Dispatcher模板类型限定,如何适配任意的事件 HOT 1
- Heter Dispatchers - why aren't they default? HOT 4
- 如何实现不定参数调用? HOT 2
- New version release (vcpkg) HOT 3
- Function in CallbackList for removing all callbacks HOT 3
- Documentation for eventmaker is out of date HOT 1
- Compilation failed when using 'counterRemover' for the 'HeterEventDispatcher' of two function lists HOT 2
- Break on receiving false from callback/event dispatch? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eventpp.