diff options
author | root <root@avtech.domain.avtechpulse.com> | 1999-12-31 20:08:17 -0500 |
---|---|---|
committer | root <root@avtech.domain.avtechpulse.com> | 1999-12-31 20:08:17 -0500 |
commit | 2a637c5759191f2911cdf5548d05496600e0655a (patch) | |
tree | 904682e89bff2940842e5ac51b8b84b1294d08c4 /menus.c | |
parent | 9748bc5b219a973fe75dd01368a60ed24557d886 (diff) |
add main menu rendering mutex lock
Diffstat (limited to 'menus.c')
-rw-r--r-- | menus.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -261,6 +261,8 @@ void Update_Main_Menu_If_Visible(void) void Show_Main_Menu(void) { + GStaticMutex mutex = G_STATIC_MUTEX_INIT; + g_static_mutex_lock (&mutex); // can be triggered simultaneously by local or remote users char a_string[2*LCD_col_width]; char b_string[2*LCD_col_width]; @@ -989,6 +991,8 @@ void Show_Main_Menu(void) LCD_col=(i / LCD_rows) * LCD_col_width + 1; LCD_write_padded_spaces(LCD_row,LCD_col,"",LCD_col_width); } + + g_static_mutex_unlock (&mutex); } |