Is there a reason to use SDL_CreateMutex() vs std::mutex?

Is there a specific reason why one would use SDL’s mutex calls instead of the std::mutex calls?

    std::mutex?

Message-ID: <1438484060.m2f.48437 at forums.libsdl.org>
Content-Type: text/plain; charset=“iso-8859-1”

Is there a specific reason why one would use SDL’s mutex calls instead of the
std::mutex calls?

SDL is a C library, std::mutex is part of C++11. If you’re only going
to be using C++11 then go for std::mutex, but if you’re going to be
allowing “extension” dynamic libraries then you should carefully
consider whether you need a C interface (C++ compilers occasionally
break binary compatibility between versions, which can make legacy
support for old C++ programs a nuisance: save yourself a little
trouble and either make the dynamic libraries use a C interface with
the host program providing the needed support functions, or distribute
updates in whole-app form).

If you know that you’ll always be using C++, but don’t know FOR
CERTAIN that the C++11 threading library will be available, then make
some C++11-compatible wrappers around the SDL functions. You’ll get to
use the C++ features you expect (with the possible exception of, well,
C++11 exception features), while maintaining the portability of SDL.> Date: Sun, 02 Aug 2015 02:54:20 +0000

From: “Sparks”
To: sdl at lists.libsdl.org
Subject: [SDL] Is there a reason to use SDL_CreateMutex() vs