mirror of
https://github.com/gelldur/EventBus.git
synced 2024-12-27 12:21:02 +08:00
Update README
This commit is contained in:
parent
7cf4465168
commit
f06ddc4fc8
24
README.md
24
README.md
@ -1,5 +1,4 @@
|
||||
# EventBus
|
||||
|
||||
[![Join the chat at https://gitter.im/EventBusCpp/Lobby](https://badges.gitter.im/EventBusCpp/Lobby.svg)](https://gitter.im/EventBusCpp/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Build Status](https://travis-ci.org/gelldur/EventBus.svg?branch=master)](https://travis-ci.org/gelldur/EventBus)
|
||||
|
||||
|
||||
@ -22,10 +21,9 @@ EventBus main goals:
|
||||
- Free
|
||||
- tiny (~15 KB)
|
||||
- Decouples notification senders and receivers
|
||||
- on every platform you need (crossplatform)
|
||||
- on every platform you need (cross-platform)
|
||||
|
||||
# Brief @ presentation
|
||||
|
||||
Presentation [google docs](https://docs.google.com/presentation/d/1apAlKcVWo9FcqkPqL8108a1Fy9LGmhgLT56hSVpoI3w/edit?usp=sharing)
|
||||
|
||||
|
||||
@ -34,7 +32,6 @@ You can checkout [sample/](sample/)
|
||||
If you want to play with sample online checkout this link: [wandbox.org](https://wandbox.org/permlink/p3xeQaosuxv6w1rv)
|
||||
|
||||
# Usage
|
||||
|
||||
0. Store bus
|
||||
|
||||
```cpp
|
||||
@ -164,7 +161,6 @@ bus.notify<int>("event1", 2);
|
||||
```
|
||||
|
||||
# Add to your project
|
||||
|
||||
EventBus can be added as `ADD_SUBDIRECTORY` to your cmake file.
|
||||
Then simply link it via `TARGET_LINK_LIBRARIES`
|
||||
Example:
|
||||
@ -191,7 +187,7 @@ make && make install
|
||||
|
||||
Now in `Release/install` library is placed.
|
||||
|
||||
# Performance
|
||||
# Performance (could be outdated)
|
||||
I have prepared some performance results. You can read about them [here](performance/README.md)
|
||||
Small example:
|
||||
|
||||
@ -203,32 +199,20 @@ checkNotifyFor10kListenersWhenNoOneListens 18 ns
|
||||
checkNotifyFor10kListenersWhenNoOneListens_CCNotificationCenter 127388 ns 127378 ns 5460 sum=0
|
||||
```
|
||||
|
||||
# Future plans
|
||||
|
||||
- Write more and better tests
|
||||
- Thread safe EventBus ?
|
||||
- Verbose messages for easy debugging ?
|
||||
- Generating graph flow ?
|
||||
- Add nice documentation [like in POCO](https://pocoproject.org/slides/090-NotificationsEvents.pdf)
|
||||
- ...
|
||||
|
||||
# Issues ?
|
||||
Please report here issue / question / whatever in 99% I will answer ;)
|
||||
Please report here issue / question / whatever, there is chance 99% I will answer ;)
|
||||
|
||||
# Thanks to
|
||||
|
||||
- [staakk](https://github.com/stanislawkabacinski) for fixing windows ;) [53d5026](https://github.com/gelldur/EventBus/commit/53d5026cad24810e82cd8d4a43d58cbfe329c502)
|
||||
- [kuhar](https://github.com/kuhar) for his advice and suggestions for EventBus
|
||||
- [swietlana](https://github.com/swietlana) for english correction and support ;)
|
||||
- [swietlana](https://github.com/swietlana) for English correction and support ;)
|
||||
- [ruslo](https://github.com/ruslo) for this great example: https://github.com/forexample/package-example
|
||||
|
||||
## For modern cmake refer
|
||||
|
||||
- https://github.com/forexample/package-example
|
||||
- https://www.youtube.com/watch?v=6sWec7b0JIc
|
||||
|
||||
# License
|
||||
|
||||
EventBus source code can be used according to the **Apache License, Version 2.0**.
|
||||
For more information see [LICENSE](LICENSE) file
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user