Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
52154ae7
Commit
52154ae7
authored
May 25, 2010
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SDL_KillThread() is no longer supported - it was always dangerous! :)
parent
21099fe9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
17 deletions
+1
-17
SDL_compat.h
include/SDL_compat.h
+1
-0
SDL_thread.h
include/SDL_thread.h
+0
-10
SDL_compat.c
src/SDL_compat.c
+0
-1
SDL_thread.c
src/thread/SDL_thread.c
+0
-6
No files found.
include/SDL_compat.h
View file @
52154ae7
...
...
@@ -324,6 +324,7 @@ extern DECLSPEC int SDLCALL SDL_EnableUNICODE(int enable);
#define SDL_RenderPoint SDL_RenderDrawPoint
#define SDL_RenderLine SDL_RenderDrawLine
#define SDL_RenderFill(X) (X) ? SDL_RenderFillRect(X) : SDL_RenderClear()
#define SDL_KillThread(X)
extern
DECLSPEC
int
SDLCALL
SDL_putenv
(
const
char
*
variable
);
...
...
include/SDL_thread.h
View file @
52154ae7
...
...
@@ -149,16 +149,6 @@ extern DECLSPEC SDL_threadID SDLCALL SDL_GetThreadID(SDL_Thread * thread);
*/
extern
DECLSPEC
void
SDLCALL
SDL_WaitThread
(
SDL_Thread
*
thread
,
int
*
status
);
/**
* \deprecated This function is here for binary compatibility with legacy apps,
* but in SDL 1.3 and later, it's a no-op.
*
* You cannot forcibly kill a thread in a safe manner on many platforms. You
* should instead find a way to alert your thread that it is time to terminate,
* and then have it gracefully exit on its own. Do not ever call this function!
*/
extern
DECLSPEC
void
SDLCALL
SDL_KillThread
(
SDL_Thread
*
thread
);
/* Ends C function definitions when using C++ */
#ifdef __cplusplus
...
...
src/SDL_compat.c
View file @
52154ae7
...
...
@@ -1750,7 +1750,6 @@ SDL_EnableUNICODE(int enable)
return
previous
;
}
int
SDL_putenv
(
const
char
*
_var
)
{
...
...
src/thread/SDL_thread.c
View file @
52154ae7
...
...
@@ -305,10 +305,4 @@ SDL_GetThreadID(SDL_Thread * thread)
return
id
;
}
void
SDL_KillThread
(
SDL_Thread
*
thread
)
{
/* This is a no-op in SDL 1.3 and later. */
}
/* vi: set ts=4 sw=4 expandtab: */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment