* fhandler_tty.cc (fhandler_tty_common::__acquire_output_mutex): Use strace

method rather than accessing field directly.
(fhandler_tty_common::__release_output_mutex): Ditto.
This commit is contained in:
Christopher Faylor 2005-12-29 21:10:50 +00:00
parent 5d97040501
commit b0cc168954
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2005-12-29 Christopher Faylor <cgf@timesys.com>
* fhandler_tty.cc (fhandler_tty_common::__acquire_output_mutex): Use
strace method rather than accessing field directly.
(fhandler_tty_common::__release_output_mutex): Ditto.
2005-12-29 Christopher Faylor <cgf@timesys.com>
* child_info.h (CURR_CHILD_INFO_MAGIC): Reset.

View File

@ -118,7 +118,7 @@ fhandler_tty_common::__acquire_output_mutex (const char *fn, int ln,
if (res == WAIT_OBJECT_0)
{
#ifndef DEBUGGING
if (strace.active)
if (strace.active ())
strace.prntf (_STRACE_TERMIOS, fn, "(%d): tty output_mutex: acquired", ln, res);
#else
ostack[osi].fn = fn;
@ -137,7 +137,7 @@ fhandler_tty_common::__release_output_mutex (const char *fn, int ln)
if (ReleaseMutex (output_mutex))
{
#ifndef DEBUGGING
if (strace.active)
if (strace.active ())
strace.prntf (_STRACE_TERMIOS, fn, "(%d): tty output_mutex released", ln);
#else
if (osi > 0)