Assert that a GlobalMutex is not held in the surrounding scope.

Synopsis

Declared in <sync.h>

[[locks_excluded(0x7ff36c772f58), locks_excluded(0x7ff3790f07b8), locks_excluded(0x7ff38c6423b8), locks_excluded(0x7ff3931580d8), locks_excluded(0x7ff38c589d58), locks_excluded(0x7ff36e333da8), locks_excluded(0x7ff38ac07478), locks_excluded(0x7ff3902509a8), locks_excluded(0x7ff378a0e448), locks_excluded(0x7ff37dfb9b68), locks_excluded(0x7ff376116718), locks_excluded(0x7ff378d76178), locks_excluded(0x7ff37f8243e8), locks_excluded(0x7ff392b87868), locks_excluded(0x7ff378d22ec8), locks_excluded(0x7ff377f6ed18), locks_excluded(0x7ff383dd2428), locks_excluded(0x7ff37bca01a8), locks_excluded(0x7ff38101dad8), locks_excluded(0x7ff35c062168), locks_excluded(0x7ff38bb09f38), locks_excluded(0x7ff380241638), locks_excluded(0x7ff3704c2008), locks_excluded(0x7ff35c4d34d8), locks_excluded(0x7ff38b168848), locks_excluded(0x7ff37f59cab8), locks_excluded(0x7ff378428fb8), locks_excluded(0x7ff3745ef398), locks_excluded(0x7ff38944e768), locks_excluded(0x7ff383b250d8), locks_excluded(0x7ff38fae1ac8), locks_excluded(0x7ff390c33718), locks_excluded(0x7ff37fe97378), locks_excluded(0x7ff37a18cab8), locks_excluded(0x7ff388dd4978), locks_excluded(0x7ff39157cc38), locks_excluded(0x7ff36f9f33d8), locks_excluded(0x7ff37c137668), locks_excluded(0x7ff392c533e8), locks_excluded(0x7ff37c853898), locks_excluded(0x7ff38efb2e58), locks_excluded(0x7ff374762918), locks_excluded(0x7ff37fd73758), locks_excluded(0x7ff3762b7718), locks_excluded(0x7ff38e8ca4a8), locks_excluded(0x7ff38abb2d58), locks_excluded(0x7ff378d15928), locks_excluded(0x7ff377499448), locks_excluded(0x7ff38ae54468), locks_excluded(0x7ff375f1df58), locks_excluded(0x7ff38c6498d8), locks_excluded(0x7ff36e7d8578), locks_excluded(0x7ff3773dd6a8), locks_excluded(0x7ff36e798568), locks_excluded(0x7ff39166cde8), locks_excluded(0x7ff37b286aa8), locks_excluded(0x7ff3901904e8), locks_excluded(0x7ff36e1a7788), locks_excluded(0x7ff3640ca4d8), locks_excluded(0x7ff38cbd06d8), locks_excluded(0x7ff375093d98), locks_excluded(0x7ff37c8d4808), locks_excluded(0x7ff38cf9e4f8), locks_excluded(0x7ff37025ddd8), locks_excluded(0x7ff3682651f8), locks_excluded(0x7ff38d5b4c08), locks_excluded(0x7ff383af01a8), locks_excluded(0x7ff36c473e78), locks_excluded(0x7ff3826c2888), locks_excluded(0x7ff38d4b5f08), locks_excluded(0x7ff37c28c358), locks_excluded(0x7ff377636f08), locks_excluded(0x7ff37bf5e1d8), locks_excluded(0x7ff3805cbf78), locks_excluded(0x7ff390fff238), locks_excluded(0x7ff3709ec4e8), locks_excluded(0x7ff3746393e8), locks_excluded(0x7ff375268cf8)]]
void
AssertLockNotHeldInline(
    char const* name,
    char const* file,
    int line,
    GlobalMutex* cs);

Parameters

Name

Description

name

Name of the mutex.

file

Source file of the caller.

line

Source line of the caller.

cs

Mutex expected not to be held.

Created with MrDocs