Re: [AD] OSX END_OF_MAIN musings |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Saturday 04 December 2004 12:28, Elias Pschernig wrote:
> If that is a concern, could just use clone instead, and makes it share
> all resources with the parent.
clone() is Linux only; fork() is POSIX.
> Heh, nice. It seems to solve the problem. The only difference is,
> pthread_create always continues with a specific function, while with
> fork/clone, you can decide which thread start the event handling.
Yeah, seems to solve the problem indeed... can we be sure that
allegro_init() is always called from the main thread though?
Playing devil's advocate here, but there must be no catch if we want this
to work...
Evert