Opencv 3.1 project on GR-PEACH board
Fork of gr-peach-opencv-project by
platform/PlatformMutex.h@170:54ff26da7eb6, 2017-07-04 (annotated)
- Committer:
- thedo
- Date:
- Tue Jul 04 06:23:13 2017 +0000
- Revision:
- 170:54ff26da7eb6
- Parent:
- 167:1657b442184c
project opencv 3.1 on GR PEACH board, no use SD card.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thedo | 167:1657b442184c | 1 | |
thedo | 167:1657b442184c | 2 | /** \addtogroup platform */ |
thedo | 167:1657b442184c | 3 | /* mbed Microcontroller Library |
thedo | 167:1657b442184c | 4 | * Copyright (c) 2006-2013 ARM Limited |
thedo | 167:1657b442184c | 5 | * |
thedo | 167:1657b442184c | 6 | * Licensed under the Apache License, Version 2.0 (the "License"); |
thedo | 167:1657b442184c | 7 | * you may not use this file except in compliance with the License. |
thedo | 167:1657b442184c | 8 | * You may obtain a copy of the License at |
thedo | 167:1657b442184c | 9 | * |
thedo | 167:1657b442184c | 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
thedo | 167:1657b442184c | 11 | * |
thedo | 167:1657b442184c | 12 | * Unless required by applicable law or agreed to in writing, software |
thedo | 167:1657b442184c | 13 | * distributed under the License is distributed on an "AS IS" BASIS, |
thedo | 167:1657b442184c | 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
thedo | 167:1657b442184c | 15 | * See the License for the specific language governing permissions and |
thedo | 167:1657b442184c | 16 | * limitations under the License. |
thedo | 167:1657b442184c | 17 | */ |
thedo | 167:1657b442184c | 18 | #ifndef PLATFORM_MUTEX_H |
thedo | 167:1657b442184c | 19 | #define PLATFORM_MUTEX_H |
thedo | 167:1657b442184c | 20 | |
thedo | 167:1657b442184c | 21 | #ifdef MBED_CONF_RTOS_PRESENT |
thedo | 167:1657b442184c | 22 | #include "rtos/Mutex.h" |
thedo | 167:1657b442184c | 23 | typedef rtos::Mutex PlatformMutex; |
thedo | 167:1657b442184c | 24 | #else |
thedo | 167:1657b442184c | 25 | /** A stub mutex for when an RTOS is not present |
thedo | 167:1657b442184c | 26 | * @ingroup platform |
thedo | 167:1657b442184c | 27 | */ |
thedo | 167:1657b442184c | 28 | class PlatformMutex { |
thedo | 167:1657b442184c | 29 | public: |
thedo | 167:1657b442184c | 30 | PlatformMutex() { |
thedo | 167:1657b442184c | 31 | // Stub |
thedo | 167:1657b442184c | 32 | |
thedo | 167:1657b442184c | 33 | } |
thedo | 167:1657b442184c | 34 | ~PlatformMutex() { |
thedo | 167:1657b442184c | 35 | // Stub |
thedo | 167:1657b442184c | 36 | } |
thedo | 167:1657b442184c | 37 | |
thedo | 167:1657b442184c | 38 | void lock() { |
thedo | 167:1657b442184c | 39 | // Do nothing |
thedo | 167:1657b442184c | 40 | } |
thedo | 167:1657b442184c | 41 | |
thedo | 167:1657b442184c | 42 | void unlock() { |
thedo | 167:1657b442184c | 43 | // Do nothing |
thedo | 167:1657b442184c | 44 | } |
thedo | 167:1657b442184c | 45 | }; |
thedo | 167:1657b442184c | 46 | |
thedo | 167:1657b442184c | 47 | #endif |
thedo | 167:1657b442184c | 48 | |
thedo | 167:1657b442184c | 49 | #endif |
thedo | 167:1657b442184c | 50 | |
thedo | 167:1657b442184c | 51 |