al_create_thread

ALLEGRO_THREAD *al_create_thread(
   void *(*proc)(ALLEGRO_THREAD *thread, void *arg), void *arg)
Introduced in 5.0.0

Spawn a new thread which begins executing proc. The new thread is passed its own thread handle and the value arg.

Returns true if the thread was created, false if there was an error.

See also: al_start_thread, al_join_thread.

Examples: ex_native_filechooser, ex_threads, ex_threads2


Most helpful discussions:

Other recent discussions: