summaryrefslogtreecommitdiff
path: root/miranda-wine/protocols/Yahoo/pthread.h
blob: e3a769a2685be80f6eddfc0a613906e8c12f927d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * $Id: pthread.h 2874 2006-05-16 21:38:00Z ghazan $
 *
 * myYahoo Miranda Plugin 
 *
 * Authors: Gennady Feldman (aka Gena01) 
 *          Laurent Marechal (aka Peorth)
 *
 * Code borrowed for myYahoo plugin. Fixed to compile on Mingw by G.Feldman
 * Original Copyright (c) 2003 Robert Rainwater
 *
 * This code is under GPL and is based on AIM, MSN and Miranda source code.
 * I want to thank Robert Rainwater and George Hazan for their code and support
 * and for answering some of my questions during development of this plugin.
 */
#ifndef PTHREAD_H
#define PTHREAD_H

unsigned long pthread_create(void (*threadcode) (void *), void *arg);
typedef CRITICAL_SECTION pthread_mutex_t;
#define pthread_mutex_init(pmutex)           InitializeCriticalSection(pmutex)
#define pthread_mutex_destroy(pmutex)        DeleteCriticalSection(pmutex)
#define pthread_mutex_lock(pmutex)           EnterCriticalSection(pmutex)
#define pthread_mutex_unlock(pmutex)         LeaveCriticalSection(pmutex)

#endif