S2OPC OPCUA Toolkit
sopc_mutexes.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 
29 #ifndef SOPC_MUTEXES_H_
30 #define SOPC_MUTEXES_H_
31 
32 #include <stdint.h>
33 
34 #include "sopc_enums.h"
35 
36 #include "sopc_threads.h"
37 
44 
52 
60 
67 
74 
84 
91 
100 
111 
112 #endif /* SOPC_MUTEXES_H_ */
SOPC_Condition_Clear
SOPC_ReturnStatus SOPC_Condition_Clear(SOPC_Condition *cond)
Delete a Condition variable.
SOPC_Mutex
QueueHandle_t SOPC_Mutex
Definition: p_sopc_synchronisation.h:77
SOPC_Mutex_Unlock
SOPC_ReturnStatus SOPC_Mutex_Unlock(SOPC_Mutex *mut)
Release a Mutex.
sopc_threads.h
A platform independent API to use threads.
SOPC_Condition_Init
SOPC_ReturnStatus SOPC_Condition_Init(SOPC_Condition *cond)
Create a Condition variable.
sopc_enums.h
SOPC_Mutex_UnlockAndWaitCond
SOPC_ReturnStatus SOPC_Mutex_UnlockAndWaitCond(SOPC_Condition *cond, SOPC_Mutex *mut)
Wait for a condition variable notification.
SOPC_Mutex_Lock
SOPC_ReturnStatus SOPC_Mutex_Lock(SOPC_Mutex *mut)
Lock a Mutex. The function may be blocking as long as the mutex is locked by another thread.
SOPC_Mutex_UnlockAndTimedWaitCond
SOPC_ReturnStatus SOPC_Mutex_UnlockAndTimedWaitCond(SOPC_Condition *cond, SOPC_Mutex *mut, uint32_t milliSecs)
Timed wait for a condition variable notification.
SOPC_Condition_SignalAll
SOPC_ReturnStatus SOPC_Condition_SignalAll(SOPC_Condition *cond)
Signals the condition variable to all waiting threads.
tConditionVariable
Definition: p_sopc_synchronisation.h:56
SOPC_Mutex_Initialization
SOPC_ReturnStatus SOPC_Mutex_Initialization(SOPC_Mutex *mut)
Create a Mutex.
SOPC_Mutex_Clear
SOPC_ReturnStatus SOPC_Mutex_Clear(SOPC_Mutex *mut)
Delete a Mutex.
SOPC_ReturnStatus
SOPC_ReturnStatus
Definition: libs2opc_client.h:64