]> git.meshlink.io Git - meshlink/commit
Provide thread-safety to functions that return pointers to meshlink_node_t.
authorSaverio Proto <zioproto@gmail.com>
Mon, 2 Jun 2014 11:54:47 +0000 (13:54 +0200)
committerSaverio Proto <zioproto@gmail.com>
Mon, 2 Jun 2014 12:05:51 +0000 (14:05 +0200)
commit391a8674fcd886165dc02154d3ef0d3377f2c840
tree8f71a00c88168e08d50194eede81c4b58a18c548
parentaf8787d1b921fd2e286514ebe83ee1c7b449f298
Provide thread-safety to functions that return pointers to meshlink_node_t.
  - The mesh->nodes tree can be updated by the library thread at any time,
    so it must be protected by a mutex or rwlock.
src/meshlink.c
src/meshlink_internal.h
src/node.c