From 43052f325355c2c5b03540119f08c38022e0a452 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 25 Feb 2010 02:01:00 +0000 Subject: net.server_event: Add lock_read() method to connections --- net/server_event.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'net/server_event.lua') diff --git a/net/server_event.lua b/net/server_event.lua index 3456fb9e..d041ae43 100644 --- a/net/server_event.lua +++ b/net/server_event.lua @@ -281,6 +281,10 @@ do self.nointerface, self.noreading, self.nowriting = nointerface, noreading, nowriting return nointerface, noreading, nowriting end + + function interface_mt:lock_read(switch) + return self:_lock(self.nointerface, switch, self.nowriting); + end function interface_mt:counter(c) if c then -- cgit v1.2.3