MCPcopy Create free account
hub / github.com/TASEmulators/fceux / fceuWrapperLock

Function fceuWrapperLock

src/drivers/Qt/fceuWrapper.cpp:1358–1377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1356static bool debugMutexLock = false;
1357
1358void fceuWrapperLock(const char *filename, int line, const char *func)
1359{
1360 fceuWrapperLock();
1361
1362 if ( debugMutexLock )
1363 {
1364 char txt[32];
1365
1366 if ( mutexLocks > 1 )
1367 {
1368 printf("Recursive Lock:%i\n", mutexLocks );
1369 printf("Already Locked By: %s\n", lockFile.c_str() );
1370 printf("Requested By: %s:%i - %s\n", filename, line, func );
1371 }
1372 sprintf( txt, ":%i - ", line );
1373 lockFile.assign(filename);
1374 lockFile.append(txt);
1375 lockFile.append(func);
1376 }
1377}
1378
1379void fceuWrapperLock(void)
1380{

Callers 3

LoadGameFromLuaFunction · 0.85
CloseGameFunction · 0.85
fceuCriticalSectionMethod · 0.85

Calls 1

lockMethod · 0.45

Tested by

no test coverage detected