Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sdlthread.inc to version 2.26.2 #114

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
4aabf37
Add file description comment
Free-Pascal-meets-SDL-Website Jan 28, 2023
25cf33a
Update TSDL_Thread (opaque now)
Free-Pascal-meets-SDL-Website Jan 28, 2023
ae57afc
Make TSDL_threadID a individual type
Free-Pascal-meets-SDL-Website Jan 28, 2023
34fe29b
Make TSDL_TLSID an individual type
Free-Pascal-meets-SDL-Website Jan 28, 2023
5fa6f9e
Update TSDL_ThreadPriority
Free-Pascal-meets-SDL-Website Jan 28, 2023
48d56fc
Update comment for PSDL_ThreadFunction
Free-Pascal-meets-SDL-Website Jan 28, 2023
6c14c65
Update TpfnSDL_CurrentEndThread + add 2 todo comments
Free-Pascal-meets-SDL-Website Jan 28, 2023
7c23835
Add SDL_CreateThreadWithStackSize
Free-Pascal-meets-SDL-Website Jan 28, 2023
7c183d9
Remove overload for SDL_CreateThread and SDL_CreateThreadWithStackSize
Free-Pascal-meets-SDL-Website Jan 28, 2023
e368a10
Add comment for code closer review and update comment for SDL_GetThre…
Free-Pascal-meets-SDL-Website Jan 28, 2023
f47eda4
Update SDL_ThreadID
Free-Pascal-meets-SDL-Website Jan 28, 2023
b357e8e
Update SDL_GetThreadID
Free-Pascal-meets-SDL-Website Jan 28, 2023
a31530a
Update SDL_SetThreadPriority
Free-Pascal-meets-SDL-Website Jan 28, 2023
9bdbc36
Update SDL_WaitThread
Free-Pascal-meets-SDL-Website Jan 28, 2023
bb395f3
Update SDL_DetachThread
Free-Pascal-meets-SDL-Website Jan 28, 2023
f82463d
Update SDL_TLSCreate
Free-Pascal-meets-SDL-Website Jan 28, 2023
8f8e8a4
Update SDL_TLSGet
Free-Pascal-meets-SDL-Website Jan 28, 2023
1182d91
Update SDL_TLSSet and Add SDL_TLSCleanup
Free-Pascal-meets-SDL-Website Jan 28, 2023
4a79194
Add cuintptr_t and cintptr_t types
Free-Pascal-meets-SDL-Website Jan 28, 2023
9fe2fb9
Update TpfnSDL_CurrentBeginThread (WIP)
Free-Pascal-meets-SDL-Website Jan 28, 2023
df88275
Fix: Re-add accidentally deleted overloaded SDL_CreateThread declaration
Free-Pascal-meets-SDL-Website Jan 28, 2023
dfa11ca
Add comment about OS2 platform part
Free-Pascal-meets-SDL-Website Jan 28, 2023
b02bc3c
Add overloaded SDL_CreateThreadWithStackSize function
Free-Pascal-meets-SDL-Website Jan 28, 2023
b9dac03
Overload SDL_CreateThreadWithStackSize function declaration
Free-Pascal-meets-SDL-Website Jan 28, 2023
b42b4ee
Re-arrange param. list in SDL_CreateThread/+WithStackSize function de…
Free-Pascal-meets-SDL-Website Jan 28, 2023
a43c037
Remove comment (review finished)
Free-Pascal-meets-SDL-Website Jan 28, 2023
f0579bf
Extend 2 comments (open questions)
Free-Pascal-meets-SDL-Website Jan 31, 2023
1b883c4
Exclude (re-)declaration of TThreadID for FPC
Free-Pascal-meets-SDL-Website Jan 31, 2023
e8ec17e
Add SDL_CreateThreadWithStackSize for ELSE-block
Free-Pascal-meets-SDL-Website Jan 31, 2023
e219cbe
Update comment of OS2-block
Free-Pascal-meets-SDL-Website Jan 31, 2023
59494a8
Re-arrange SDL_CreateThread macro and add comment
Free-Pascal-meets-SDL-Website Jan 31, 2023
590d3a7
Add version tag 2.26.2 for sdlthread.inc
Free-Pascal-meets-SDL-Website Jan 31, 2023
fe796f1
Add EXTERNALSYM for cintptr_t and cuintptr_t
Free-Pascal-meets-SDL-Website Mar 21, 2023
e4e241a
Remove MacOS-IFDEFs in WINDOWS block
Free-Pascal-meets-SDL-Website Mar 21, 2023
217d95f
Fix: Remove doubled prefix SDL_
Free-Pascal-meets-SDL-Website Mar 21, 2023
e7a09e4
Fix: adds 2 missing cdecl's
Free-Pascal-meets-SDL-Website Mar 21, 2023
c8b2e48
Add TTLSDestructor function pointer and use it in SDL_TLSSet
Free-Pascal-meets-SDL-Website May 27, 2023
2cba02c
TpfnSDL_CurrentBeginThread: Replace LongWord by cuint
Free-Pascal-meets-SDL-Website May 27, 2023
d423b12
Merge branch 'master' into update-sdlthread
Free-Pascal-meets-SDL-Website May 1, 2024
80de970
Update sdlthread.inc version
Free-Pascal-meets-SDL-Website May 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions units/ctypes.inc
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,18 @@ type

ppcuint8 = ^pcuint8;

{ "The following type designates an unsigned integer type [or signed respectivly]
with the property that any valid pointer to void can be
converted to this type, then converted back to a pointer
to void, and the result will compare equal to the original
pointer: uintptr_t"
Source: https://pubs.opengroup.org/onlinepubs/000095399/basedefs/stdint.h.html
}
cuintptr_t = PtrUInt;
{$EXTERNALSYM cuintptr_t}
cintptr_t = PtrInt;
{$EXTERNALSYM cintptr_t}

{$IFDEF WANT_CWCHAR_T}
(* wchar_t is the "wide character" type of the C language.
* The size of this type is platform- and compiler-dependent.
Expand Down
13 changes: 11 additions & 2 deletions units/sdl2.pas
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
{$ELSE}
SDL_LibName = 'libSDL2.so.0';
{$ENDIF}
{$MESSAGE HINT 'Known MESA bug may generate float-point exception in software graphics mode! See https://github.com/PascalGameDevelopment/SDL2-for-Pascal/issues/56 for reference.'}

Check notice on line 112 in units/sdl2.pas

View workflow job for this annotation

GitHub Actions / ubuntu-20-04

sdl2.pas(112,8): Hint (user defined)

Known MESA bug may generate float-point exception in software graphics mode! See https://github.com/PascalGameDevelopment/SDL2-for-Pascal/issues/56 for reference.
{$ENDIF}
{$ENDIF}

Expand All @@ -131,7 +131,7 @@
{$I sdlerror.inc} // 2.0.14
{$I sdlplatform.inc} // 2.0.14
{$I sdlpower.inc} // 2.0.14
{$I sdlthread.inc}
{$I sdlthread.inc} // 2.30.2
{$I sdlatomic.inc} // 2.0.20
{$I sdlmutex.inc} // 2.26.5
{$I sdltimer.inc} // 2.0.18
Expand Down Expand Up @@ -220,11 +220,20 @@
{$IFDEF WINDOWS}
//from "sdl_thread.h"

function SDL_CreateThread(fn: TSDL_ThreadFunction; name: PAnsiChar; data: Pointer): PSDL_Thread; overload;
function SDL_CreateThread(fn: TSDL_ThreadFunction; name: PAnsiChar;
data: Pointer): PSDL_Thread; overload;
begin
Result := SDL_CreateThread(fn,name,data,nil,nil);
end;

function SDL_CreateThreadWithStackSize(fn: TSDL_ThreadFunction;
name: PAnsiChar; const stacksize: csize_t; data: Pointer
): PSDL_Thread; overload;
begin
Result := SDL_CreateThreadWithStackSize(
fn,name,stacksize,data,nil,nil);
end;

{$ENDIF}

//from "sdl_rect.h"
Expand Down
Loading
Loading