summaryrefslogtreecommitdiff
path: root/components/cplusplus/cpp11/armclang/tpl.h
diff options
context:
space:
mode:
authorMan, Jianting (Meco) <[email protected]>2022-03-25 11:07:18 -0400
committerGitHub <[email protected]>2022-03-25 23:07:18 +0800
commita514b3bd16e4f21202cc001d9294ac2c2f206c3d (patch)
treeb7663d60d1a5a8f34a83b3ee3625b6c97097718a /components/cplusplus/cpp11/armclang/tpl.h
parent851d16b18f0448ee83e069edd5aaa3998e00e284 (diff)
[components][kconfig] 整理Kconfig目录名称和结构 (#5698)
Diffstat (limited to 'components/cplusplus/cpp11/armclang/tpl.h')
-rw-r--r--components/cplusplus/cpp11/armclang/tpl.h56
1 files changed, 0 insertions, 56 deletions
diff --git a/components/cplusplus/cpp11/armclang/tpl.h b/components/cplusplus/cpp11/armclang/tpl.h
deleted file mode 100644
index 70c9503cec..0000000000
--- a/components/cplusplus/cpp11/armclang/tpl.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Change Logs:
- * Date Author Notes
- * 2021-04-27 flybreak the first version.
- */
-
-#pragma once
-#ifndef __cplusplus
-void ARMTPLInit();
-#else
-#include <rtthread.h>
-
-#define ARM_TPL_MAX_DELAY 1000
-#define ARM_TPL_THREAD_STACK_SIZE 4096
-
-enum arm_tpl_mutex_type
-{
- NORMAL,
- RECURSIVE,
-};
-
-struct arm_tpl_mutex_struct
-{
- rt_mutex_t mutex;
- arm_tpl_mutex_type type;
-};
-
-struct arm_tpl_thread_struct
-{
- rt_thread_t task;
- void *(*func)(void *);
- void *arg;
- rt_sem_t join_sem;
- rt_sem_t detach_sem;
-};
-
-class arm_tpl_cv
-{
-public:
- arm_tpl_cv();
- ~arm_tpl_cv();
- void wait(rt_mutex_t lock, bool recursive);
- int timedwait(rt_mutex_t lock, bool recursive, unsigned int timeout_ms);
- void signal();
- void broadcast();
-private:
- rt_sem_t s;
- rt_sem_t h;
- rt_mutex_t x;
-};
-
-#endif