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:
- Allegro 5 Threading Interface (1)
- ALLEGRO_EVENT_DISPLAY_SWITCH_OUT
- Multiple threads/displays, Event handling question
- ALLEGRO_THREAD stacksize
- Need Good tutorials on Allegro threads.
- Synchronizing Threads
- Running a function on a triggered event (Thread?)
- A threaded loading screen
- Thread problem
- shows error when creating class DATA in Xcode for c project
Other recent discussions:
- Question on return value of al_create_thread
- [A5] Need help with loading screens and multithreading
- Sending a memory bitmap over internet
- help with threads
- al_draw_bitmap fails to run on threads other than the parent thread
- Pushing outside of a tile collision.
- Differences between al_run_detached_thread() and al_start_thread()
- Threading Problems
- Allegro 5 threads
- Classes and Threads