C Porting Layer API Reference for Oracle Internet of Things Cloud Service Client Software Library. Release 21.1.1.0.0-3. E80003-19
iotcs_port_mutex.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
00003  *
00004  * This software is dual-licensed to you under the MIT License (MIT) and
00005  * the Universal Permissive License (UPL). See the LICENSE file in the root
00006  * directory for license terms. You may choose either license, or both.
00007  */
00008 
00014 #ifndef IOTCS_PORT_MUTEX_H
00015 #define IOTCS_PORT_MUTEX_H
00016 
00017 #ifdef  __cplusplus
00018 extern "C" {
00019 #endif
00020 
00021 #include "iotcs_config.h"
00022 
00027     typedef void* iotcs_port_mutex;
00028 
00035     iotcs_port_mutex iotcs_port_mutex_create(void);
00036 
00043     void iotcs_port_mutex_destroy(iotcs_port_mutex mutex);
00044 
00051     void iotcs_port_mutex_lock(iotcs_port_mutex mutex);
00052 
00059     void iotcs_port_mutex_unlock(iotcs_port_mutex mutex);
00060 
00061 #ifdef  __cplusplus
00062 }
00063 #endif
00064 
00065 #endif  /* IOTCS_PORT_MUTEX_H */
00066