On måndag, maj 13, 2002, at 02:56 , Nick Ing-Simmons wrote:
> > I meant a run-time switchable abscraction like SvLOCK which > ALWAYS does CALL_FPTR(PL_lockhook)(aTHX_ sv) > > And something populates the variable at runtime. > > Likewise we could have Perl_MUTEX_LOCK() always > CALL_FPTR(PL_mutexlock)(aTHX_ mutex) > > and have a dummy function for non-threads case. > +ve - This makes XS code binary compatible between threads/non-threads. > -ve - extra overhead It isn't binary copmatible anyways, dTHX and friends... MUTEX_INIT MUTEX_LOCK and friends are noops under non threaded perl, so the functionality is always there. Arthur