lib/glue/array.rb in glue-0.15.0 vs lib/glue/array.rb in glue-0.16.0

- old
+ new

@@ -1,11 +1,11 @@ # * George Moschovitis <gm@navel.gr> # (c) 2002-2005 Navel, all rights reserved. -# $Id: array.rb 282 2005-03-10 12:24:53Z gmosx $ +# $Id: array.rb 1 2005-04-11 11:04:30Z gmosx $ require 'sync' -module N +module Glue # A thread-safe array. We use a sync object instead of a # mutex, because it is re-entrant. An exclusive lock is # needed when writing, a shared lock IS NEEDED when reading.