Family of src/nx/nn/hooks.hook. The hooks_off setting turns a family off by its name.
std::mutex, std::recursive_mutex and std::condition_variable (sync.c): the host's own, by the guest object's address. A condition variable's wait in the game's own code unlocks its mutex in the guest object, which the host's mutex never writes, so they go together. A save state can't hold a thread waiting on the host's, nor a mutex the host holds for it, so native_cond_var=0 leaves all three to the game's own code, and save states are refused while they run. Not timed_mutex, shared_timed_mutex or condition_variable_any, whose templates the game inlines over their members, which are a std::mutex and a condition variable of these
std::__1::recursive_mutex::recursive_mutex() source_ZNSt3__115recursive_mutexC1Ev
As C: void (addr m)
Handler: sync_recursive_init (sync.c)
std::__1::recursive_mutex::recursive_mutex() source_ZNSt3__115recursive_mutexC2Ev
As C: void (addr m)
Handler: sync_recursive_init (sync.c)
std::__1::recursive_mutex::~recursive_mutex() source_ZNSt3__115recursive_mutexD1Ev
As C: void (addr m)
Handler: sync_drop (sync.c)
std::__1::recursive_mutex::~recursive_mutex() source_ZNSt3__115recursive_mutexD2Ev
As C: void (addr m)
Handler: sync_drop (sync.c)
std::__1::recursive_mutex::lock() source_ZNSt3__115recursive_mutex4lockEv
As C: void (addr m)
Handler: sync_recursive_lock (sync.c)
std::__1::recursive_mutex::try_lock() source_ZNSt3__115recursive_mutex8try_lockEv
As C: bool (addr m)
Handler: sync_recursive_try_lock (sync.c)
std::__1::recursive_mutex::unlock() source_ZNSt3__115recursive_mutex6unlockEv
As C: void (addr m)
Handler: sync_recursive_unlock (sync.c)
std::__1::mutex::lock() source_ZNSt3__15mutex4lockEv
As C: void (addr m)
Handler: sync_mutex_lock (sync.c)
std::__1::mutex::try_lock() source_ZNSt3__15mutex8try_lockEv
As C: bool (addr m)
Handler: sync_mutex_try_lock (sync.c)
std::__1::mutex::unlock() source_ZNSt3__15mutex6unlockEv
As C: void (addr m)
Handler: sync_mutex_unlock (sync.c)
std::__1::mutex::~mutex() source_ZNSt3__15mutexD1Ev
As C: void (addr m)
Handler: sync_drop (sync.c)
std::__1::mutex::~mutex() source_ZNSt3__15mutexD2Ev
As C: void (addr m)
Handler: sync_drop (sync.c)
std::__1::condition_variable::notify_one() source_ZNSt3__118condition_variable10notify_oneEv
As C: void (addr cv)
Handler: sync_cond_notify_one (sync.c)
std::__1::condition_variable::notify_all() source_ZNSt3__118condition_variable10notify_allEv
As C: void (addr cv)
Handler: sync_cond_notify_all (sync.c)
std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) source_ZNSt3__118condition_variable4waitERNS_11unique_lockINS_5mutexEEE
As C: void (addr cv, addr lock)
Handler: sync_cond_wait (sync.c)
std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>) source_ZNSt3__118condition_variable15__do_timed_waitERNS_11unique_lockINS_5mutexEEENS_6chrono10time_pointINS5_12system_clockENS5_8durationIxNS_5ratioILl1ELl1000000000EEEEEEE
As C: void (addr cv, addr lock, i64 ns)
Handler: sync_cond_timed_wait (sync.c)
std::__1::condition_variable::~condition_variable() source_ZNSt3__118condition_variableD1Ev
As C: void (addr cv)
Handler: sync_drop (sync.c)
std::__1::condition_variable::~condition_variable() source_ZNSt3__118condition_variableD2Ev
As C: void (addr cv)
Handler: sync_drop (sync.c)
the C library's waits, which libc++'s inlined timed waits call with a std::mutex's words (a steady_clock wait_for or wait_until made with pthread_cond_clockwait): on a mutex of this family's the wait is the host's, as condition_variable's own; on any other mutex the function's own code runs
pthread_cond_wait sourceAs C: i32 (addr cv, addr m)
Handler: sync_pthread_cond_wait (sync.c)
pthread_cond_timedwait sourceAs C: i32 (addr cv, addr m, addr abstime)
Handler: sync_pthread_cond_timedwait (sync.c)
pthread_cond_clockwait sourceAs C: i32 (addr cv, addr m, i32 clock, addr abstime)
Handler: sync_pthread_cond_clockwait (sync.c)
Made from ScarletNX's Sail at 166ad3910f80. The hooks' and the SVCs' declarations and their handlers are ScarletNX's (GPL-3.0-or-later); the SVCs' declarations are Eden's, as hos.svc says.