lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, Jun 25, 2008 at 4:51 PM, David Given <dg@cowlark.com> wrote:
> t = tuple() --- access Linda tuplespace (traditionally, Linda only has
>                one)
>
> Thread 1:
>  t.foo = 1 -- writes value to tuplespace
>  t.foo = 2 -- blocks until the slot is vacant, then writes
>
> Thread 2:
>  print(t.foo) -- blocks until the slot is full, and consumes it,
>                  returning the value
>  print(t.foo) -- blocks again

looks like a namespace for named queues, right?


-- 
Javier