diff options
| author | liuxianliang <[email protected]> | 2021-10-13 15:20:29 +0800 |
|---|---|---|
| committer | liuxianliang <[email protected]> | 2021-10-13 15:20:29 +0800 |
| commit | 9f2616e32313bd3c642ed46e72707f80f8272de3 (patch) | |
| tree | 26803569a833e7751a70a6f20e9fc68ca0981730 /components/cplusplus/Lock.h | |
| parent | 0211f2fcc191f37a7a3eb54aadfbbc9d226d15f0 (diff) | |
[modify] those file name is risky if you use both "c++" and "POSIX pthread".
Diffstat (limited to 'components/cplusplus/Lock.h')
| -rw-r--r-- | components/cplusplus/Lock.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/components/cplusplus/Lock.h b/components/cplusplus/Lock.h deleted file mode 100644 index c3cc1d2dae..0000000000 --- a/components/cplusplus/Lock.h +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2006-2021, RT-Thread Development Team - * - * SPDX-License-Identifier: Apache-2.0 - * - * Change Logs: - * Date Author Notes - * 2016/10/1 Bernard The first version - */ - -#pragma once - -#include <stdint.h> -#include <string.h> - -namespace rtthread { - -class Lock -{ -public: - Lock(Mutex& mutex) : m(mutex) {m.lock();} - ~Lock() {m.unlock();} - -protected: - Mutex &m; -}; - -} |
