From abba364fb3b8871a2baac7779b0850b3bdc479b0 Mon Sep 17 00:00:00 2001 From: johannst Date: Mon, 5 Oct 2020 18:07:06 +0200 Subject: change fmt of short function Only allow short 'Empty' functions due to following clang fmt bug https://bugs.llvm.org/show_bug.cgi?id=24410 --- lib/thread.cc | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'lib/thread.cc') 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 // 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 FnThread::make(UserFn f) { return std::make_unique(CreatorToken{}, f); } + std::unique_ptr FnThread::make(UserFn f) { + return std::make_unique(CreatorToken{}, f); + } - void FnThread::threadFn() { mUserFn(*this); } + void FnThread::threadFn() { + mUserFn(*this); + } - void FnThread::yield() { Thread::yield(); } + void FnThread::yield() { + Thread::yield(); + } } // namespace nMatcha -- cgit v1.2.3