[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: coroutine & busy wait?
- From: PA <petite.abeille@...>
- Date: Sat, 5 Feb 2005 13:23:56 +0100
On Feb 04, 2005, at 04:15, skaller wrote:
I'm not quite sure how to deal with the "busy wait" introduced by the
dispatcher run loop though. Ideally the dispatching should be based on
some kind of events. But at first glance I don't quite see how to pull
this out using only Lua itself... ideas much appreciated :)
The right way to do this requires pthreads and an OS alarm.
I stumbled upon Luiz Henrique de Figueiredo's treasure trove:
One of his Lua library being "lalarm", an alarm library for Lua based
on signal and SIGALRM.
This sounds exactly like what I would need, right?
I would love to give the above library a spin, however I'm quite at
loss on how to compile and install it :/
I tried to follow Luiz's instruction at "Installing my Lua Libraries":
... but without much success so far:
cc -I/usr/local/include -ansi -pedantic -Wall -O2 -c -o lalarm.o
cc -o lalarm.so -shared lalarm.o
cc: unrecognized option `-shared'
ld: Undefined symbols:
make: *** [lalarm.so] Error 1
Does anyone has a make file for Mac OS X?
For the record, I'm using lua-5.1-work4 on Mac OS X 10.3.7.
PA, Onnay Equitursay