Skip to content
Snippets Groups Projects
Commit b180cd5e authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

cbus: code review for dynamic cbus routing

* move cbus declaration to cbus.c, since going forward
  it's a private singleton
* rename cbus_item to cbus_endpoint. It represents the state
  of a single cord in the cbus (but in the future, a single cord
  may have more than one endpoint.
* move declaration of cbus_endpoint to cbus.c
* factor out cbus_find_endpoint()
* add/update comments
* move cbus_init()/cbus_free() to main.cc
* replace pthread_cond_signal() with pthread_cond_broadcast(),
  since in theory there can be many waiters on an endpoint
  to join.
parent 2b4ef3bf
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment