diff options
author | certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-04-08 15:00:45 +0000 |
---|---|---|
committer | certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-04-08 15:00:45 +0000 |
commit | 77c8e1b76716386ec7c95622d42a624c16313521 (patch) | |
tree | 28dba714eb30979ff2f8a6ee00faafc8a17ccf4b | |
parent | 18383f90f87563933c90f020cf73e68872248079 (diff) |
# BUILD : 1.7.14 (1027) # BUGS : # NOTES : removed threads.h
git-svn-id: svn://svn.anope.org/anope/trunk@1027 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@751 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | include/threads.h | 67 | ||||
-rw-r--r-- | version.log | 6 |
2 files changed, 5 insertions, 68 deletions
diff --git a/include/threads.h b/include/threads.h deleted file mode 100644 index 90694a625..000000000 --- a/include/threads.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * - * (C) 2004 Anope Team - * Contact us at info@anope.org - * - * Please read COPYING and README for furhter details. - * - * Based on the original code of Epona by Lara. - * Based on the original code of Services by Andy Church. - * - * - */ - -#ifndef THREADS_H -#define THREADS_H - -#ifdef _WIN32 -typedef long ano_thread_t; -typedef HANDLE ano_mutex_t; -typedef HANDLE ano_cond_t; -typedef unsigned (__stdcall *ano_thread_start) (void *); -typedef struct -{ - ano_thread_start func; - void *arg; -} ano_cleanup_t; - -extern ano_thread_start __declspec(thread) cleanup_func; - -#define ano_thread_create(thread,start,arg) !_beginthreadex(NULL, 0, (ano_thread_start)start, arg, 0, &thread) -#define ano_thread_self() GetCurrentThreadId() -#define ano_thread_detach(thread) 0 -#define ano_mutex_lock(mutex) WaitForSingleObject(mutex, INFINITE) -#define ano_mutex_unlock(mutex) ReleaseMutex(mutex) - -/* ano_cond_wait is in compat.c */ -#define ano_cond_signal(cond) SetEvent(cond) - -/* very minimalistic implementation */ -#define ano_cleanup_push(func, arg) cleanup_func = (ano_thread_start)func -#define ano_cleanup_pop(execute) cleanup_func(NULL) - -#else - -typedef pthread_t ano_thread_t; -typedef pthread_mutex_t ano_mutex_t; -typedef pthread_cond_t ano_cond_t; -typedef void *(*ano_thread_start) (void *); - -#define ano_thread_create(thread,start,arg) pthread_create(&thread, NULL, start, arg) -#define ano_thread_self() pthread_self() -#define ano_thread_detach(thread) pthread_detach(thread) - -#define ano_mutex_lock(mutex) pthread_mutex_lock(&mutex) -#define ano_mutex_unlock(mutex) pthread_mutex_unlock(&mutex) - -#define ano_cond_wait(cond, mutex) pthread_cond_wait(&cond, &mutex) -#define ano_cond_signal(cond) pthread_cond_signal(&cond) - -#define ano_cleanup_push(func, arg) pthread_cleanup_push(func, arg) -#define ano_cleanup_pop(execute) pthread_cleanup_pop(execute) - -#define ano_thread_cancel(thread) pthread_cancel(thread) - -#endif - -#endif diff --git a/version.log b/version.log index dac69a5dc..246e56785 100644 --- a/version.log +++ b/version.log @@ -9,10 +9,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="14" VERSION_EXTRA="" -VERSION_BUILD="1026" +VERSION_BUILD="1027" # $Log$ # +# BUILD : 1.7.14 (1027) +# BUGS : +# NOTES : removed threads.h +# # BUILD : 1.7.14 (1026) # BUGS : 487 488 489 # NOTES : some fixes. |