mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +00:00
Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -11,8 +11,7 @@ DrapeNotifier::DrapeNotifier(ref_ptr<ThreadsCommutator> commutator)
|
||||
{}
|
||||
|
||||
uint64_t DrapeNotifier::Notify(ThreadsCommutator::ThreadName threadName,
|
||||
base::DelayedThreadPool::Duration const & duration, bool repeating,
|
||||
Functor && functor)
|
||||
base::DelayedThreadPool::Duration const & duration, bool repeating, Functor && functor)
|
||||
{
|
||||
uint64_t const notifyId = m_counter++;
|
||||
NotifyImpl(threadName, duration, repeating, notifyId, std::move(functor));
|
||||
@@ -20,14 +19,13 @@ uint64_t DrapeNotifier::Notify(ThreadsCommutator::ThreadName threadName,
|
||||
}
|
||||
|
||||
void DrapeNotifier::NotifyImpl(ThreadsCommutator::ThreadName threadName,
|
||||
base::DelayedThreadPool::Duration const & duration, bool repeating,
|
||||
uint64_t notifyId, Functor && functor)
|
||||
base::DelayedThreadPool::Duration const & duration, bool repeating, uint64_t notifyId,
|
||||
Functor && functor)
|
||||
{
|
||||
dp::DrapeRoutine::RunDelayed(duration,
|
||||
[this, threadName, duration, repeating, notifyId, functor = std::move(functor)]() mutable
|
||||
[this, threadName, duration, repeating, notifyId, functor = std::move(functor)]() mutable
|
||||
{
|
||||
m_commutator->PostMessage(threadName,
|
||||
make_unique_dp<NotifyRenderThreadMessage>(functor, notifyId),
|
||||
m_commutator->PostMessage(threadName, make_unique_dp<NotifyRenderThreadMessage>(functor, notifyId),
|
||||
MessagePriority::Normal);
|
||||
if (repeating)
|
||||
NotifyImpl(threadName, duration, repeating, notifyId, std::move(functor));
|
||||
|
||||
Reference in New Issue
Block a user