Wiki Page Content

Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2010-05-25 04:44:18
Size: 526
Editor: SheenaSmith
Comment: create page, add content
Revision 3 as of 2010-06-02 00:25:07
Size: 1070
Editor: SheenaSmith
Comment: add introduction content
Deletions are marked like this. Additions are marked like this.
Line 10: Line 10:
Other Includes: SDL_stdinc.h, SDL_error.h Other Includes:  SDL_thread.h, SDL_stdinc.h, SDL_error.h
Line 15: Line 15:

^Mutex functions are used to coordinate multiple threads using or calling the same resource to avoid interference that may cause instability in the program. Threads take turns locking (accessing) the resource one at a time. Waiting threads are queued up based on the mutex algorithm and take their turn locking (accessing) the shared resource as each previous function unlocks (releases) the resource.^

^Semaphore functions are used to determine whether resources are available to be allocated to a process in the queue.^

Thread Synchronization Primitives

Primary Include: SDL_mutex.h

Other Includes: SDL_thread.h, SDL_stdinc.h, SDL_error.h

Introduction

Mutex functions are used to coordinate multiple threads using or calling the same resource to avoid interference that may cause instability in the program. Threads take turns locking (accessing) the resource one at a time. Waiting threads are queued up based on the mutex algorithm and take their turn locking (accessing) the shared resource as each previous function unlocks (releases) the resource.

Semaphore functions are used to determine whether resources are available to be allocated to a process in the queue.

Functions in this group provide thread synchronization primitives for functions in the CategoryThreads group.

Functions


CategoryCategory

None: CategoryMutex (last edited 2016-03-27 21:45:54 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit