MutexImplLxrt38.cpp
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 // This file is part of FZIs ic_workspace.
5 //
6 // This program is free software licensed under the LGPL
7 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
8 // You can find a copy of this license in LICENSE folder in the top
9 // directory of the source code.
10 //
11 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
12 //
13 // -- END LICENSE BLOCK ------------------------------------------------
14 
15 //----------------------------------------------------------------------
24 //----------------------------------------------------------------------
26 
28 #include <icl_core/os_lxrt.h>
29 
30 #include "icl_core_thread/Common.h"
31 
32 #define STRICT_LXRT_CHECKS
33 
34 
35 namespace icl_core {
36 namespace thread {
37 
39  : m_sem(1, BIN_SEM)
40 {
41 }
42 
44 {
45 }
46 
48 {
49  return m_sem.wait();
50 }
51 
53 {
54  return m_sem.wait(timeout);
55 }
56 
58 {
59  return m_sem.wait(timeout);
60 }
61 
63 {
64  return m_sem.tryWait();
65 }
66 
68 {
69  m_sem.post();
70 }
71 
72 }
73 }
Represents absolute times.
Definition: TimeStamp.h:61
Contains a system independet PRINTF macro.
Contains icl_core::thread::tMutex.
const TimeSpan timeout(1, 0)
Contains global LXRT functions.
Repesents absolute times.
Definition: TimeSpan.h:46
Contains icl_core::thread::MutexImplLxrt38.


fzi_icl_core
Author(s):
autogenerated on Mon Jun 10 2019 13:17:58