summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_thread_win32.h
blob: 8254be720bf08bf8105ba02316a45c79a6751000 (plain) (blame)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* EINA - EFL data type library
 * Copyright (C) 2020 Carlos Signor
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library;
 * if not, see <http://www.gnu.org/licenses/>.
 */

#ifndef EINA_THREAD_WIN32_H
#define EINA_THREAD_WIN32_H

#ifdef HAVE_CONFIG_H
# include "config.h"
#endif


#include "eina_thread.h"
#include "unimplemented.h"
#include <errno.h>
// #include <string.h>
#ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
#endif
#include <Windows.h>
#undef _WIN32_LEAN_AND_MEAN
#define EINA_THREAD_CANCEL_ENABLE 0
#define EINA_THREAD_CANCEL_DISABLE 1
#define EINA_THREAD_CANCEL_DEFERRED 0
#define EINA_THREAD_CANCEL_ASYNCHRONOUS 1
#define EINA_THREAD_CANCELED   ((void *) -1)
/**
 * @typedef Eina_Thread
 * Type for a generic thread.
 */
typedef HANDLE Eina_Thread;

#endif