diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-02-25 18:08:59 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-02-25 18:08:59 +0000 |
commit | e224080a1416a55366b82243eb1fa92052f096fc (patch) | |
tree | 694651bed0dd85190842359c60cb71eb006723ef /net/server_event.lua | |
parent | 2113d0d2552f174a2f86789323ac0c10d3d1e210 (diff) | |
parent | 52d66e52676c48d453fa286be2c5587dce80afb4 (diff) | |
download | prosody-e224080a1416a55366b82243eb1fa92052f096fc.tar.gz prosody-e224080a1416a55366b82243eb1fa92052f096fc.zip |
Merge with 0.7
Diffstat (limited to 'net/server_event.lua')
-rw-r--r-- | net/server_event.lua | 4 |
1 files changed, 4 insertions, 0 deletions
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 |