Software /
code /
prosody
Diff
net/server_event.lua @ 2708:d9c4ade80ae9
net.server_event: Add lock_read() method to connections
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 25 Feb 2010 02:01:00 +0000 |
parent | 2660:9e5b21b7b2f9 |
child | 2726:1b9179e04233 |
line wrap: on
line diff
--- a/net/server_event.lua Mon Feb 22 01:48:07 2010 +0000 +++ b/net/server_event.lua Thu Feb 25 02:01:00 2010 +0000 @@ -281,6 +281,10 @@ 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