S2OPC OPCUA Toolkit
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 
26 #ifndef SOPC_THREADS_H_
27 #define SOPC_THREADS_H_
28 
35 #include "p_sopc_threads.h"
36 #include "sopc_enums.h"
37 
55  void* (*startFct)(void*),
56  void* startArgs,
57  const char* taskName);
58 
87  void* (*startFct)(void*),
88  void* startArgs,
89  int priority,
90  const char* taskName);
91 
99 
105 void SOPC_Sleep(unsigned int milliseconds);
106 
107 #endif /* SOPC_THREADS_H_ */
SOPC_Sleep
void SOPC_Sleep(unsigned int milliseconds)
Suspend current thread execution for (at least) a millisecond interval.
SOPC_Thread_Create
SOPC_ReturnStatus SOPC_Thread_Create(SOPC_Thread *thread, void *(*startFct)(void *), void *startArgs, const char *taskName)
Function to create a thread.
sopc_enums.h
SOPC_Thread_Join
SOPC_ReturnStatus SOPC_Thread_Join(SOPC_Thread thread)
Function to wait for a thread to terminate.
SOPC_Thread_CreatePrioritized
SOPC_ReturnStatus SOPC_Thread_CreatePrioritized(SOPC_Thread *thread, void *(*startFct)(void *), void *startArgs, int priority, const char *taskName)
Function to create a high priority thread.
SOPC_Thread
Definition: p_sopc_threads.h:36
SOPC_ReturnStatus
SOPC_ReturnStatus
Definition: libs2opc_client.h:64