in reply to Re: I lost my "bless"ing.
in thread I lost my "bless"ing.

But what use is a semaphore that is not shared? Like one hand clapping?
Maybe the "shared" part is builtin.?
So was it possible to use ::Semaphore in 5.8.5; and if so, how was it tested, if not shared between threads?

Probably an imponderable of a misty past.

Replies are listed 'Best First'.
Re^3: I lost my "bless"ing.
by jettero (Monsignor) on Dec 21, 2006 at 11:50 UTC

    This may be of interest... it's source from the Semaphore.pm:

    sub new { my $class = shift; my $val : shared = @_ ? shift : 1; bless \$val, $class; }

    It says that you don't need to share it because it's already shared. Also, note that the author shares the scalar and then blesses it... Not the other way around.

    Use the source Luke.

    -Paul