develooper Front page | perl.ithreads | Postings from August 2013

Thread-Barrier dev release - test suite I can borrow?

From:
Mike Pomraning
Date:
August 8, 2013 16:17
Subject:
Thread-Barrier dev release - test suite I can borrow?
Message ID:
CAPZFfA9tcH7y3HJ1W-8Xt6GPfE44Hp4hJZys8f0U2GmicFr1hA@mail.gmail.com
ithreads folk,

Thread-Barrier-0.300_02 is on CPAN, introducing barrier actions, timed
waits, and brokenness (the good kind).  It's backward compatible, and has a
bugfix, too.

There are tests for everything, but if anyone knows of a rigorous test
suite for barriers with a friendly license, I'd gladly adapt it.  Everyone
is also invited to review it for the bad kind of brokenness, of course.

Developers on this list may be interested to know that the barrier action,
a coderef, is implemented by turning the object sharing inside-out.
 Instead of a Thread::Barrier being a shared compound object with a coderef
member -- croak("Cannot share subs yet") -- it is an unshared compound
object with a coderef member and a separate shared member.

-Mike



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About