mn_autolock.hpp File Reference
#include "mn_config.hpp"
#include "mn_lock.hpp"
#include "mn_mutex.hpp"
#include "mn_semaphore.hpp"
#include "mn_null_lock.hpp"

Go to the source code of this file.

Namespaces

 mn
 

Macros

#define portMAX_DELAY   0xffffffffUL
 

Typedefs

using mn::autocsemp_t = basic_autolock< counting_semaphore_t >
 
using mn::autobinsemp_t = basic_autolock< binary_semaphore_t >
 
using mn::automutx_t = basic_autolock< mutex_t >
 
using mn::LockType_t = mn::binary_semaphore_t
 
using mn::autolock_t = basic_autolock< LockType_t >
 

Functions

template<class TLOCK = LockType_t>
int mn::lock (TLOCK &m1, unsigned int timeout)
 
template<class TLOCK = LockType_t>
int mn::unlock (TLOCK &m1)
 
template<class TLOCK = LockType_t>
bool mn::try_lock (TLOCK &m1)
 

Detailed Description

This file is part of the Mini Thread Library (https://github.com/RoseLeBlood/MiniThread ).

Author
Copyright (c) 2021 Amber-Sophia Schroeck
License
The Mini Thread Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, version 3, or (at your option) any later version.

The Mini Thread Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with the Mini Thread Library; if not, see https://www.gnu.org/licenses/.

Macro Definition Documentation

◆ portMAX_DELAY

#define portMAX_DELAY   0xffffffffUL