Changeset: 80be39d103d8 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=80be39d103d8 Modified Files: gdk/gdk_posix.c Branch: Feb2013 Log Message:
Remove ancient, unused code. We don't support Cygwin anymore, and certainly not an ancient version. diffs (41 lines): diff --git a/gdk/gdk_posix.c b/gdk/gdk_posix.c --- a/gdk/gdk_posix.c +++ b/gdk/gdk_posix.c @@ -1007,37 +1007,4 @@ MT_sleep_ms(unsigned int ms) Sleep(ms); } - -/* - * cygnus1.1.X has a bug in the semaphore routines. we work around it - * by directly using the WIN32 primitives. - */ -#ifndef NATIVE_WIN32 - -int -sem_init(sem_t * sem, int pshared, unsigned int value) -{ - (void) pshared; - *sem = (sem_t) CreateSemaphore(NULL, value, 128, NULL); - return (*sem) ? 0 : -1; -} - -int -sem_destroy(sem_t * sem) -{ - return CloseHandle((HANDLE) *sem) ? 0 : -1; -} - -int -sem_wait(sem_t * sem) -{ - return (WaitForSingleObject((HANDLE) *sem, (unsigned int) INFINITE) != WAIT_FAILED) ? 0 : -1; -} - -int -sem_post(sem_t * sem) -{ - return (ReleaseSemaphore((HANDLE) *sem, 1, NULL) == 0) ? -1 : 0; -} #endif -#endif _______________________________________________ checkin-list mailing list checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list