Add Channel:supply(), a blocking version of Channel:push()

--HG--
branch : minor
This commit is contained in:
Bart van Strien
2013-01-27 20:04:16 +01:00
parent 0fd4b147a4
commit be2363fc00
4 changed files with 66 additions and 7 deletions
+1
View File
@@ -30,6 +30,7 @@ namespace thread
{
Channel *luax_checkchannel(lua_State *L, int idx);
int w_Channel_push(lua_State *L);
int w_Channel_supply(lua_State *L);
int w_Channel_pop(lua_State *L);
int w_Channel_demand(lua_State *L);
int w_Channel_peek(lua_State *L);