]> git.meshlink.io Git - meshlink/commit
Add a way to set the channel's priv pointer when opening it.
authorGuus Sliepen <guus@meshlink.io>
Sun, 13 Oct 2019 19:39:11 +0000 (21:39 +0200)
committerGuus Sliepen <guus@meshlink.io>
Sun, 13 Oct 2019 19:41:34 +0000 (21:41 +0200)
commitb0319f8d358c476e29d3c6daeef1cda616cfd447
treebd93e40ffad82d15af4b50a74475fbf2fb71db7b
parent22cef91d16dcef1c41fc187b870c112d3f408ac7
Add a way to set the channel's priv pointer when opening it.

This prevents a race condition where between opening a channel and
setting the priv pointer, the receive callback is called.
src/meshlink++.h
src/meshlink.c
src/meshlink.h