lua-users home
lua-l archive

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

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:

% make
cc -I/usr/local/include -ansi -pedantic -Wall -O2 -c -o lalarm.o lalarm.c
cc -o -shared lalarm.o
cc: unrecognized option `-shared'
ld: Undefined symbols:
make: *** [] 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