Software /
code /
prosody
Changeset
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 |
parents | 2706:c2dde8bda3fe |
children | 2714:9c5d8e0c146e |
files | net/server_event.lua |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
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