aboutsummaryrefslogtreecommitdiff
path: root/lib/thread.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/thread.cc')
-rw-r--r--lib/thread.cc16
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/thread.cc b/lib/thread.cc
index e6777c0..ed2dee3 100644
--- a/lib/thread.cc
+++ b/lib/thread.cc
@@ -12,7 +12,9 @@
#include <unistd.h> // sysconf
namespace {
- static long get_pagesize() { return ::sysconf(_SC_PAGESIZE); }
+ static long get_pagesize() {
+ return ::sysconf(_SC_PAGESIZE);
+ }
} // namespace
namespace nMatcha {
@@ -57,9 +59,15 @@ namespace nMatcha {
::yield(mExecutor->getStackPtr(), &mStackPtr);
}
- std::unique_ptr<Thread> FnThread::make(UserFn f) { return std::make_unique<FnThread>(CreatorToken{}, f); }
+ std::unique_ptr<Thread> FnThread::make(UserFn f) {
+ return std::make_unique<FnThread>(CreatorToken{}, f);
+ }
- void FnThread::threadFn() { mUserFn(*this); }
+ void FnThread::threadFn() {
+ mUserFn(*this);
+ }
- void FnThread::yield() { Thread::yield(); }
+ void FnThread::yield() {
+ Thread::yield();
+ }
} // namespace nMatcha