SDL_DestroySemaphore



SDL_DestroySemaphore

NAME
SYNOPSIS
DESCRIPTION
EXAMPLES
SEE ALSO

NAME

SDL_DestroySemaphore − Destroys a semaphore that was created by SDL_CreateSemaphore.

SYNOPSIS

#include "SDL.h" #include "SDL_thread.h"

void SDL_DestroySemaphore(SDL_sem *sem);

DESCRIPTION

SDL_DestroySemaphore destroys the semaphore pointed to by sem that was created by SDL_CreateSemaphore. It is not safe to destroy a semaphore if there are threads currently blocked waiting on it.

EXAMPLES

if (my_sem != NULL) {
        SDL_DestroySemaphore(my_sem);
        my_sem = NULL;
}

SEE ALSO

SDL_CreateSemaphore, SDL_SemWait, SDL_SemTryWait, SDL_SemWaitTimeout, SDL_SemPost, SDL_SemValue



More Linux Commands

manpages/wdelch.3ncurses.html
wdelch(3ncurses) - delete character under the cursor in a cu
wdelch.3ncurses - These routines delete the character under the cursor; all characters to the right of the cursor on the same line are moved to the left one pos

manpages/append.n.html
append(n) - Append to variable (Local - Linux man page).....
Append all of the value arguments to the current value of variable varName. If varName does not exist, it is given a value equal to the concatenation of all the

manpages/insdelln.3ncurses.html
insdelln(3ncurses) - delete and insert lines in a curses win
insdelln.3ncurses - The deleteln and wdeleteln routines delete the line under the cursor in the window; all lines below the current line are moved up one line.

manpages/body_checks.5.html
header_checks(5) - Postfix built-in content inspection......
This document describes access control on the content of message headers and message body lines; it is implemented by the Postfix cleanup(8) server before mail

manpages/File::Copy.3pm.html
File::Copy(3pm) - Copy files or filehandles - Linux man page
The File::Copy module provides two basic functions, copy and move, which are useful for getting the contents of a file from one place to another. copy The copy

manpages/print_value.3.html
print_value(3) - netsnmp_varbind_api functions (Man Page)...
The functions dealing with variable bindings fall into four groups dealing with the creation, setting of values, output and deletion of varbinds. Creation snmp_

manpages/sendmsg.2.html
sendmsg(2) - send a message on a socket - Linux manual page
The system calls send(), sendto(), and sendmsg() are used to transmit a message to another socket. The send() call may be used only when the socket is in a conn

manpages/hugin.1.html
hugin(1) - Hugin panorama creator - Linux manual page.......
Hugin is a GUI tool for panorama creation. This man page is a stub, complete documentation of the GUI can be found in the online manual available in the Help me

manpages/clipboard.n.html
clipboard(n) - Manipulate Tk clipboard - Linux manual page
This command provides a Tcl interface to the Tk clipboard, which stores data for later retrieval using the selection mechanism (via the -selection CLIPBOARD opt

manpages/argz_add_sep.3.html
argz_add_sep(3) - functions to handle an argz list (ManPage)
These functions are glibc-specific. An argz vector is a pointer to a character buffer together with a length. The intended interpretation of the character buffe

manpages/getmaxyx.3ncurses.html
getmaxyx(3ncurses) - get curses cursor and window coordinate
The getyx macro places the current cursor position of the given window in the two integer variables y and x. If win is a subwindow, the getparyx macro places th

manpages/glNormal3fv.3gl.html
glNormal3fv(3gl) - set the current normal vector (Man Page)
The current normal is set to the given coordinates whenever glNormal is issued. Byte, short, or integer arguments are converted to floating-point with a linear





We can't live, work or learn in freedom unless the software we use is free.