Wiki Page Content

Differences between revisions 3 and 4
Revision 3 as of 2010-09-03 16:50:15
Size: 880
Editor: SheenaSmith
Comment: minor change
Revision 4 as of 2010-09-08 22:57:53
Size: 1232
Editor: SheenaSmith
Comment: update content (old wiki)
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
Use this function to unlock the mutex. Use this function to unlock ,,the,, ^a^ mutex.
Line 16: Line 16:
||'''mutex'''||^a pointer to the SDL_mutex structure to be unlocked^|| ||'''mutex'''||^a pointer to the SDL_mutex structure / mutex to be unlocked^||
Line 29: Line 29:
<<Color2(green,define SDL_UnlockMutex(m) SDL_mutexV(m))>> ??? *<<BR>>SDL also defines a macro `#define SDL_UnlockMutex(m) SDL_mutexV(m)`. <<BR>>*

''-or-''

[[SDL_mutexV]](m) and SDL_!UnlockMutex(m) are equivalent.

''-or-''

The macro SDL_!UnlockMutex(m) will call [[SDL_mutexV]](m).

<<Color2(green,I'm guessing this !UnlockMutex part will actually be omitted but I left it in since it was mentioned in the old wiki.)>>
Line 32: Line 42:
 .[[SDL_mutexP]]  .[[SDL_CreateMutex]] *
.[[SDL_mutexP]] *

DRAFT

SDL_mutexV

Use this function to unlock the a mutex.

Syntax

int SDL_mutexV(SDL_mutex* mutex)

Function Parameters

mutex

a pointer to the SDL_mutex structure / mutex to be unlocked

Return Value

Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

It is an error to unlock a mutex that has not been locked by the current thread, and doing so results in undefined behavior.

*
SDL also defines a macro #define SDL_UnlockMutex(m) SDL_mutexV(m).
*

-or-

SDL_mutexV(m) and SDL_UnlockMutex(m) are equivalent.

-or-

The macro SDL_UnlockMutex(m) will call SDL_mutexV(m).

green


CategoryAPI, CategoryMutex

None: SDL_mutexV (last edited 2015-02-21 10:30:22 by PhilippWiesemann)

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