lua-users home
lua-l archive

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


* Gaspard Bucher:

> Thanks for the feedback Florian. I needed some reassurance: global mutex are
> so out of fashion nowadays that I felt I must be stupid or misunderstanding
> something important for deciding to use one. If we want to handle multiple
> event sources, there must be some kind of gate between these sources and the
> Lua state and the simplest of such gates is a mutex, right ?

Usually, there's a single centralized even loop and no threads and
mutexes.  The event loop notices when file descriptors become active,
distributes signals, and provides timers, too.  The choice of event
loop is typically fixed by the choice of GUI library.