SDL_DestroyProcess(3)
π SDL_DestroyProcess β the SDL3 FUNCTIONS era π
okay bestie, welcome to the group chat, we're talking about SDL_DestroyProcess(3) today and honestly? it's giving "cleanup era". β¨
πΈ NAME πΈ
SDL_DestroyProcess β destroy a previously created process object. yes queen, it's exactly what it says on the tin. π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_process.h>
void SDL_DestroyProcess(SDL_Process *process);
that's it. that's the whole vibe. one function, one pointer, zero drama. π
π¦ DESCRIPTION π¦
so here's the tea, and it's important tea: calling this does not stop the process. it just destroys the SDL object that you were using to track it. like, you're deleting the contact, not hanging up the call. π
if what you actually want is to stop the process, you do not use this. you go use SDL_KillProcess() instead. that's the one with the actual authority. π
lowkey a huge distinction, so don't mix them up β destroy β kill, no cap.
π FUNCTION PARAMETERS π
processβ the process object to destroy. hand it over and it's gone, bestie. π«Ά
π THREAD SAFETY π
this function is not thread safe.
so like, do not come at it from multiple threads at once. it will not slay, it will not serve, it will simply break. π
β AVAILABILITY β
this function has been available since SDL 3.2.0. iconic behavior honestly. π
π₯ SEE ALSO π₯
the whole little process friend group. go read them, iykyk. π§
k bye ily, this page was brought to you by Simple Directmedia Layer, running SDL 3.4.18, and it's the SDL_DestroyProcess(3) moment forever. mwah πβ¨
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms