S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
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
30#ifndef SOPC_MUTEXES_H_
31#define SOPC_MUTEXES_H_
32
33#include <stdint.h>
34
35#include "sopc_enums.h"
36
37/*****************************************************************************
38 * Abstract interface types
39 *****************************************************************************/
46#define SOPC_INVALID_COND NULL
47
54#define SOPC_INVALID_MUTEX NULL
55
56/*****************************************************************************
57 * Platform-dependant functions interfaces
58 *****************************************************************************/
66
74
82
90
97
107
114
123
134
135#endif /* SOPC_MUTEXES_H_ */
enum _SOPC_ReturnStatus SOPC_ReturnStatus
Common enumerations for S2OPC.
SOPC_Mutex_Impl * SOPC_Mutex
Definition sopc_mutexes.h:53
SOPC_ReturnStatus SOPC_Mutex_Initialization(SOPC_Mutex *mut)
Create a Mutex.
SOPC_ReturnStatus SOPC_Mutex_UnlockAndWaitCond(SOPC_Condition *cond, SOPC_Mutex *mut)
Wait for a condition variable notification.
SOPC_ReturnStatus SOPC_Condition_Clear(SOPC_Condition *cond)
Delete a Condition variable.
SOPC_ReturnStatus SOPC_Mutex_UnlockAndTimedWaitCond(SOPC_Condition *cond, SOPC_Mutex *mut, uint32_t milliSecs)
Timed wait for a condition variable notification.
SOPC_ReturnStatus SOPC_Mutex_Clear(SOPC_Mutex *mut)
Delete a Mutex.
SOPC_ReturnStatus SOPC_Mutex_Unlock(SOPC_Mutex *mut)
Release a Mutex.
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_Condition_Impl * SOPC_Condition
Definition sopc_mutexes.h:45
SOPC_ReturnStatus SOPC_Condition_SignalAll(SOPC_Condition *cond)
Signals the condition variable to all waiting threads.
SOPC_ReturnStatus SOPC_Condition_Init(SOPC_Condition *cond)
Create a Condition variable.
Definition p_sopc_synchronisation.h:57
Definition p_sopc_synchronisation.h:64