S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
p_sopc_threads.h
Go to the documentation of this file.
1/*
2 * Licensed to Systerel under one or more contributor license
3 * agreements. See the NOTICE file distributed with this work
4 * for additional information regarding copyright ownership.
5 * Systerel licenses this file to you under the Apache
6 * License, Version 2.0 (the "License"); you may not use this
7 * file except in compliance with the License. You may obtain
8 * a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20#ifndef SOPC_P_THREADS_H_
21#define SOPC_P_THREADS_H_
22
23#ifdef __MINGW32__
24#include <winsock2.h>
25#endif
26
27#include <windows.h>
28
29struct SOPC_Mutex_Impl
30{
31 CRITICAL_SECTION mutex;
32};
33
35{
36 CONDITION_VARIABLE cond;
37};
38
39typedef void* SOPCThreadStartFct(void*);
40
43{
44 HANDLE thread;
46 void* args;
47};
48
49#endif /* SOPC_P_THREADS_H_ */
Definition p_sopc_synchronisation.h:57
CONDITION_VARIABLE cond
Definition p_sopc_threads.h:36
Definition p_sopc_synchronisation.h:64
CRITICAL_SECTION mutex
Definition p_sopc_threads.h:31
Definition p_sopc_threads.h:42
void * args
Definition p_sopc_threads.h:46
SOPCThreadStartFct * startFct
Definition p_sopc_threads.h:45
HANDLE thread
Definition p_sopc_threads.h:44
void * SOPCThreadStartFct(void *)
Definition p_sopc_threads.h:39