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)
- 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
- 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
Other recent discussions:
- Pushing outside of a tile collision.
- Differences between al_run_detached_thread() and al_start_thread()
- Threading Problems
- Allegro 5 threads
- Classes and Threads
- input responsiveness
- scrolling
- A5 threads - is it what I need ?
- [A5] Threading a game
- [a5] Render some pixel data and question about threads in allegro5