Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-05-17 19:27:56 +0400
committerChristopher Faylor <me@cgf.cx>2004-05-17 19:27:56 +0400
commit641654f72a412df1dfe97890bdffbb8b5fa74eb2 (patch)
treea7e180f0c34ec1ff263e60f439777b0e5f3e5698 /winsup/cygwin/tty.h
parentfb4489a53f1f770ac7159fb38dceb480b99fb1cc (diff)
Change the name "title_mutex" to "tty_mutex" throughout.
* tty.h (tty_list::allocate_tty): Turn argument into a boolean. * tty.cc (tty_list::init): Protect entire allocation operation with tty_mutex (formerly title_mutex) to protect against allocation races.
Diffstat (limited to 'winsup/cygwin/tty.h')
-rw-r--r--winsup/cygwin/tty.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/tty.h b/winsup/cygwin/tty.h
index d29b2e903..5602a0530 100644
--- a/winsup/cygwin/tty.h
+++ b/winsup/cygwin/tty.h
@@ -125,7 +125,7 @@ class tty_list
public:
tty * operator [](int n) {return ttys + n;}
- int allocate_tty (int n); /* n non zero if allocate a tty, pty otherwise */
+ int allocate_tty (bool); /* true if allocate a tty, pty otherwise */
int connect_tty (int);
void terminate ();
void init ();