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_thread.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_THREAD_H
00015 #define IOTCS_PORT_THREAD_H
00016 
00017 
00018 #ifdef  __cplusplus
00019 extern "C" {
00020 #endif
00021 
00022 #include <stdint.h>
00023 #include "iotcs_config.h"
00024 
00029     typedef void *(*iotcs_port_thread_func) (void *);
00030 
00035     typedef void* iotcs_port_thread;
00036 
00044     iotcs_port_thread iotcs_port_thread_create(iotcs_port_thread_func func_ptr);
00045  
00053     iotcs_port_thread iotcs_port_thread_create_small_stack(iotcs_port_thread_func func_ptr);
00054 
00061     void iotcs_port_thread_join(iotcs_port_thread thread);
00062 
00068     int iotcs_port_sleep_millis(int32_t timeout_ms);
00069 
00077     void iotcs_port_thread_cleanup(void);
00078 #ifdef  __cplusplus
00079 }
00080 #endif
00081 
00082 #endif  /* IOTCS_PORT_THREAD_H */
00083