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