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 
54  void* (*startFct)(void*),
55  void* startArgs,
56  const char* taskName);
57 
86  void* (*startFct)(void*),
87  void* startArgs,
88  int priority,
89  const char* taskName);
90 
98 
99 #endif /* SOPC_THREADS_H_ */
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_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