Commit Graph

3 Commits (5cf558e4d59f03e06101b7e974aee846fd07d6cc)

Author SHA1 Message Date
Douglas Creager 9975bdfd2c Add additional code to llthreads bootstrap
This patch lets you add additional code to the beginning of the
bootstrap function executed within each new llthread.  This is needed,
for instance, if you've installed lua-zmq via luarocks; in this case,
you need to require "luarocks.loader" before you can require "zmq".  So
you can do something like:

    if package.loaded["luarocks.loader"] then
       zmq.threads.set_bootstrap_prelude([[require "luarocks.loader"]])
    end
15 years ago
Robert G. Jakabosky 9689b108b5 Allow zmq context to be nil. Fixed passing of timeout value to poller. 15 years ago
Robert G. Jakabosky d90b00f237 Move low-level threads code into a different project lua-llthreads. 15 years ago