| 1356 | static bool debugMutexLock = false; |
| 1357 | |
| 1358 | void 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 | |
| 1379 | void fceuWrapperLock(void) |
| 1380 | { |
no test coverage detected