On onsdag, juli 24, 2002, at 07:55 , Marc M. Adkins wrote:
> > This seems to imply that every existing module should have modifications > made to make it "well behaved" in a threaded environment. > > Question: does :unique imply :shared so that these changes require > variable > locking? In which case modules should _not_ have these changes made? > Oh, > wait, does unique even do anything if use threads; hasn't been invoked? > > This is really off the wall...but if Perl has a "constant" mechanism > (and it > probably does somewhere I don't know about ;) then it might make sense > for > all constants to automagically be unique. > > mma > > No, unique are readonly and do not need to be locked. And it does nothing until a thread has been created. Arthur
