Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jan 2019 06:19:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 235158] lang/lua53 no longer linked against pthread
Message-ID:  <bug-235158-7788-P7y847D5Ou@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-235158-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-235158-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235158

--- Comment #12 from andrew@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 =3D require 'cqueues'
local thread =3D require 'cqueues.thread'

local function print_data(sock, data) print(data) end
local function start()
        local thr,sock =3D thread.start(print_data, 'data')
        thr:join()
end

local loop =3D cqueues.new()
loop:wrap(start)
assert(loop:loop())

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-235158-7788-P7y847D5Ou>