diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2007-02-23 11:43:48 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2007-02-23 11:43:48 +0000 |
commit | 7131554a692a675bfff2d95f224c54dfdb88686c (patch) | |
tree | c028512f710599faa8590a8c64865aed0cb4e856 /winsup/cygserver/bsd_mutex.cc | |
parent | aaee2ffaed818ccaf248b4097a3b7c7bfa4ea82a (diff) | |
download | cygnal-7131554a692a675bfff2d95f224c54dfdb88686c.tar.gz cygnal-7131554a692a675bfff2d95f224c54dfdb88686c.tar.bz2 cygnal-7131554a692a675bfff2d95f224c54dfdb88686c.zip |
Throughout remove using wincap.
* Makefile.in (OBJS): Remove wincap.o.
* README: Don't mention 9x.
* bsd_mutex.cc (_mtx_unlock): Drop checking for 9x error codes.
* cygserver.cc (server_submission_loop::request_loop): Add FIXME
comment.
* wincap.cc: Remove.
* wincap.h: Remove.
* woutsup.h: Don't include wincap.h.
Diffstat (limited to 'winsup/cygserver/bsd_mutex.cc')
-rw-r--r-- | winsup/cygserver/bsd_mutex.cc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/winsup/cygserver/bsd_mutex.cc b/winsup/cygserver/bsd_mutex.cc index bbd7fd280..5e8e54381 100644 --- a/winsup/cygserver/bsd_mutex.cc +++ b/winsup/cygserver/bsd_mutex.cc @@ -1,6 +1,6 @@ /* bsd_mutex.cc - Copyright 2003, 2004, 2005 Red Hat Inc. + Copyright 2003, 2004, 2005, 2007 Red Hat Inc. This file is part of Cygwin. @@ -83,11 +83,8 @@ _mtx_unlock (mtx *m, const char *file, int line) In that case, m->h is NULL. */ if (m->h && !ReleaseSemaphore (m->h, 1, NULL)) { - /* Check if the semaphore was already on it's max value. In this case, - ReleaseSemaphore returns FALSE with an error code which *sic* depends - on the OS. */ - if ( (!wincap.is_winnt () && GetLastError () != ERROR_INVALID_PARAMETER) - || (wincap.is_winnt () && GetLastError () != ERROR_TOO_MANY_POSTS)) + /* Check if the semaphore was already on it's max value. */ + if (GetLastError () != ERROR_TOO_MANY_POSTS) _panic (file, line, "release of mutex %s failed, %E", m->name); } _log (file, line, LOG_DEBUG, "Unlocked mutex %s/%u (owner: %u)", @@ -112,7 +109,7 @@ win_priority (int priority) { int p = (int)((priority) & PRIO_MASK) - PZERO; /* Generating a valid priority value is a bit tricky. The only valid - values on 9x and NT4 are -15, -2, -1, 0, 1, 2, 15. */ + values on NT4 are -15, -2, -1, 0, 1, 2, 15. */ switch (p) { case -15: case -14: case -13: case -12: case -11: |