]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Include message id in log
authorToni Wilen <twilen@winuae.net>
Sat, 23 Aug 2025 14:54:44 +0000 (17:54 +0300)
committerToni Wilen <twilen@winuae.net>
Sat, 23 Aug 2025 14:54:44 +0000 (17:54 +0300)
drawing.cpp

index d7a3854e04449fff97fe956d0db9e5ae9d61b1e8..f939ddba4d25dd091c3a90fa079298becd467b2c 100644 (file)
@@ -7227,13 +7227,13 @@ static bool waitqueue_nolock(void)
        }
        return true;
 }
-static bool waitqueue(void)
+static bool waitqueue(int id)
 {
        if (quit_program) {
                return false;
        }
        if (!thread_debug_lock) {
-               write_log("Denise queue without lock!\n");
+               write_log("Denise queue without lock! id=%d\n", id);
                return false;
        }
        waitqueue_nolock();
@@ -7250,7 +7250,7 @@ void draw_denise_border_line_fast_queue(int gfx_ypos, enum nln_how how, struct l
 {
        if (MULTITHREADED_DENISE) {
                
-               if (!waitqueue()) {
+               if (!waitqueue(2)) {
                        return;
                }
 
@@ -7276,7 +7276,7 @@ void draw_denise_bitplane_line_fast_queue(int gfx_ypos, enum nln_how how, struct
 {
        if (MULTITHREADED_DENISE) {
                
-               if (!waitqueue()) {
+               if (!waitqueue(1)) {
                        return;
                }
 
@@ -7302,7 +7302,7 @@ void quick_denise_rga_queue(uae_u32 linecnt, int startpos, int endpos)
 {
        if (MULTITHREADED_DENISE) {
 
-               if (!waitqueue()) {
+               if (!waitqueue(3)) {
                        return;
                }
 
@@ -7355,7 +7355,7 @@ void draw_denise_line_queue(int gfx_ypos, nln_how how, uae_u32 linecnt, int star
 {
        if (MULTITHREADED_DENISE) {
 
-               if (!waitqueue()) {
+               if (!waitqueue(0)) {
                        return;
                }
 
@@ -7447,7 +7447,7 @@ void denise_store_restore_registers_queue(bool store, uae_u32 linecnt)
 {
        if (MULTITHREADED_DENISE) {
 
-               if (!waitqueue()) {
+               if (!waitqueue(7)) {
                        return;
                }
                struct denise_rga_queue *q = &rga_queue[rga_queue_write & DENISE_RGA_SLOT_CHUNKS_MASK];