Skip to content

Commit

Permalink
WinGUI beeping : Borland Turbo C lacks a '_beginthread()' function, s…
Browse files Browse the repository at this point in the history
…o we can't beep in a separate thread. The program will therefore lock up while beeping is occurring... don't see a way around that.
  • Loading branch information
Bill-Gray committed Jul 15, 2024
1 parent 21d190b commit 26128c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wingui/pdcutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ static void beep_thread(LPVOID lpParameter)
void PDC_beep(void)
{
PDC_LOG(("PDC_beep() - called\n"));
#if defined(__TURBOC__)
beep_thread( 0);
#else
_beep_count++;
if( _beep_count == 1)
_beginthread( beep_thread, 0, NULL);
#endif
}

void PDC_napms(int ms) /* 'ms' = milli, _not_ microseconds! */
Expand Down

0 comments on commit 26128c2

Please sign in to comment.