SDL_KillProcess(3)

πŸ’… NAME πŸ’…

SDL_KillProcess β€” bestie, this one stops a process. like, ends it. periodt. πŸ›‘


✨ SYNOPSIS ✨

#include <SDL3/SDL_process.h>

bool SDL_KillProcess(SDL_Process *process, bool force);

🫢 FUNCTION PARAMETERS 🫢

  • process β€” the process you're trying to stop. the one getting the goodbye kiss. πŸ’‹
  • force β€” true to terminate the process immediately, false to try to stop it gracefully. and listen, bestie: in general you should try to stop the process gracefully first, because terminating a process may leave it with half-written data or in some other unstable state. no cap, that's messy. 😭

πŸ’– RETURN VALUE πŸ’–

Returns true on success or false on failure; call SDL_GetError() for more information. so if it flops, go read the error. she'll tell you what's wrong. πŸ”


πŸ”₯ THREAD SAFETY πŸ”₯

This function is not thread safe. do not share her across threads, she will absolutely spiral. πŸ’€


🌈 AVAILABILITY 🌈

This function is available since SDL 3.2.0. vintage-ish. iconic. πŸ‘‘


πŸ‘‘ SEE ALSO πŸ‘‘


okay that's the whole vibe. this page came from <strong>Simple Directmedia Layer</strong>, version <strong>SDL 3.4.18</strong> β€” mwah, slay, bye bestie πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from