Changeset 5e5498e in mainline
- Timestamp:
- 2018-07-05T21:41:20Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ecb072d
- Parents:
- a75f3e49
- git-author:
- Dzejrou <dzejrou@…> (2018-03-02 20:23:47)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:20)
- Location:
- uspace/lib/cpp
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/Makefile
ra75f3e49 r5e5498e 42 42 src/iostream.cpp \ 43 43 src/locale.cpp \ 44 src/mutex.cpp \ 44 45 src/new.cpp \ 45 46 src/string.cpp \ -
uspace/lib/cpp/include/impl/mutex.hpp
ra75f3e49 r5e5498e 30 30 #define LIBCPP_MUTEX 31 31 32 #include <internal/common.hpp> 32 33 #include <thread> 33 34 extern "C" {35 #include <fibril_synch.h>36 }37 34 38 35 namespace std 39 36 { 37 extern "C" { 38 #include <fibril.h> 39 #include <fibril_synch.h> 40 } 41 40 42 /** 41 43 * 20.4.1.2.1, class mutex: -
uspace/lib/cpp/include/impl/thread.hpp
ra75f3e49 r5e5498e 34 34 #include <ostream> 35 35 36 extern "C" {37 #include <fibril.h>38 #include <fibril_synch.h>39 }40 41 36 namespace std 42 37 { 38 extern "C" { 39 #include <fibril.h> 40 #include <fibril_synch.h> 41 } 42 43 43 namespace aux 44 44 { … … 225 225 auto usecs = chrono::duration_cast<chrono::duration<typename Duration::rep, micro>>(abs_time - now); 226 226 227 std::fibril_usleep(usecs.count());227 fibril_usleep(usecs.count()); 228 228 } 229 229 … … 236 236 // TODO: timeouts? 237 237 auto usecs = chrono::duration_cast<chrono::duration<Rep, micro>>(rel_time); 238 std::fibril_usleep(usecs.count());238 fibril_usleep(usecs.count()); 239 239 } 240 240 } … … 246 246 { 247 247 public: 248 id() noexcept248 constexpr id() noexcept 249 249 : id_{} 250 250 { /* DUMMY BODY */ } -
uspace/lib/cpp/src/mutex.cpp
ra75f3e49 r5e5498e 31 31 namespace std 32 32 { 33 mutex::mutex()33 constexpr mutex::mutex() noexcept 34 34 : mtx_{} 35 35 { … … 71 71 } 72 72 73 recursive_mutex::recursive_mutex()73 constexpr recursive_mutex::recursive_mutex() noexcept 74 74 : mtx_{}, lock_level_{}, owner_{} 75 75 {
Note:
See TracChangeset
for help on using the changeset viewer.