Renesas GR-PEACH OpenCV Development / gr-peach-opencv-project-sd-card_update

Fork of gr-peach-opencv-project-sd-card by the do

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers PlatformMutex.h Source File

PlatformMutex.h

00001 
00002 /** \addtogroup platform */
00003 /* mbed Microcontroller Library
00004  * Copyright (c) 2006-2013 ARM Limited
00005  *
00006  * Licensed under the Apache License, Version 2.0 (the "License");
00007  * you may not use this file except in compliance with the License.
00008  * You may obtain a copy of the License at
00009  *
00010  *     http://www.apache.org/licenses/LICENSE-2.0
00011  *
00012  * Unless required by applicable law or agreed to in writing, software
00013  * distributed under the License is distributed on an "AS IS" BASIS,
00014  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015  * See the License for the specific language governing permissions and
00016  * limitations under the License.
00017  */
00018 #ifndef PLATFORM_MUTEX_H
00019 #define PLATFORM_MUTEX_H
00020 
00021 #ifdef MBED_CONF_RTOS_PRESENT
00022 #include "rtos/Mutex.h"
00023 typedef rtos::Mutex PlatformMutex;
00024 #else
00025 /** A stub mutex for when an RTOS is not present
00026  * @ingroup platform
00027 */
00028 class PlatformMutex {
00029 public:
00030     PlatformMutex() {
00031         // Stub
00032 
00033     }
00034     ~PlatformMutex() {
00035         // Stub
00036     }
00037 
00038     void lock() {
00039         // Do nothing
00040     }
00041 
00042     void unlock() {
00043         // Do nothing
00044     }
00045 };
00046 
00047 #endif
00048 
00049 #endif
00050 
00051