[Bug 235158] lang/lua53 no longer linked against pthread
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Jan 25 06:19:55 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235158
--- Comment #12 from andrew at tao11.riddles.org.uk ---
(In reply to Russell Haley from comment #9)
The result's not deterministic because the program never actually waits for the
thread to run, so it can exit the main program even before the thread gets
going.
Here is a corrected test:
local cqueues = require 'cqueues'
local thread = require 'cqueues.thread'
local function print_data(sock, data) print(data) end
local function start()
local thr,sock = thread.start(print_data, 'data')
thr:join()
end
local loop = cqueues.new()
loop:wrap(start)
assert(loop:loop())
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list