summaryrefslogtreecommitdiff
path: root/protocols/Gadu-Gadu/libgadu/pthread.h
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-10-12 14:18:20 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-10-12 14:18:20 +0000
commit0ecadfc45326fce5fc4ba28b27a0a7ad484e5b84 (patch)
treefef68e6433f39bd8d51e0718f0de8ea425e52be3 /protocols/Gadu-Gadu/libgadu/pthread.h
parentef1f6f8fac28594a151c4cd811d1590cfc7ff81d (diff)
Gadu-Gadu: folders restructurization
git-svn-id: http://svn.miranda-ng.org/main/trunk@1888 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Gadu-Gadu/libgadu/pthread.h')
-rw-r--r--protocols/Gadu-Gadu/libgadu/pthread.h56
1 files changed, 0 insertions, 56 deletions
diff --git a/protocols/Gadu-Gadu/libgadu/pthread.h b/protocols/Gadu-Gadu/libgadu/pthread.h
deleted file mode 100644
index 4de1053e0e..0000000000
--- a/protocols/Gadu-Gadu/libgadu/pthread.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
-pthread Portable implementation
-
-Copyright (c) 2003 Robert Rainwater
-Copyright (c) 2003-2005 Adam Strzelecki
-
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-*/
-
-#ifndef PTHREAD_H
-#define PTHREAD_H
-
-#include <windows.h>
-
-// Minipthread code from Miranda IM source
-typedef struct
-{
- HANDLE hThread;
- DWORD dwThreadId;
-}
-pthread_t;
-
-typedef int pthread_attr_t;
-typedef CRITICAL_SECTION pthread_mutex_t;
-
-/* create thread */
-int pthread_create(pthread_t *tid, const pthread_attr_t *attr, void *(__stdcall *thread_start) (void *), void *param);
-/* wait for thread termination */
-int pthread_join(pthread_t *tid, void **value_ptr);
-/* detach a thread */
-int pthread_detach(pthread_t *tid);
-/* get calling thread's ID */
-pthread_t *pthread_self(void);
-/* cancel execution of a thread */
-int pthread_cancel(pthread_t *thread);
-/* terminate thread */
-void pthread_exit(void *value_ptr);
-
-#define pthread_mutex_init(pmutex, pattr) InitializeCriticalSection(pmutex)
-#define pthread_mutex_destroy(pmutex) DeleteCriticalSection(pmutex)
-#define pthread_mutex_lock(pmutex) EnterCriticalSection(pmutex)
-#define pthread_mutex_unlock(pmutex) LeaveCriticalSection(pmutex)
-
-#endif