From 9841573893369e2e846de4c60378e5fdc888ce71 Mon Sep 17 00:00:00 2001 From: "Robert G. Jakabosky" Date: Mon, 1 Oct 2012 11:45:01 -0700 Subject: [PATCH] Add sub-modules to 'zmq' module's table. --- src/poller.lua | 1 + src/threads.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/src/poller.lua b/src/poller.lua index cd629a7..2ca40ea 100644 --- a/src/poller.lua +++ b/src/poller.lua @@ -92,5 +92,6 @@ function M.new(pre_alloc) }, poller_mt) end +zmq.poller = M return setmetatable(M, {__call = function(tab, ...) return M.new(...) end}) diff --git a/src/threads.lua b/src/threads.lua index 4f6b981..e37838a 100644 --- a/src/threads.lua +++ b/src/threads.lua @@ -108,4 +108,5 @@ function M.get_parent_ctx(ctx) return parent_ctx end +zmq.threads = M return M