chromium/third_party/perfetto/src/base/unix_task_runner.cc

/*
 * Copyright (C) 2017 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include "perfetto/base/build_config.h"

#include "perfetto/ext/base/platform.h"
#include "perfetto/ext/base/unix_task_runner.h"

#include <errno.h>
#include <stdlib.h>

#if PERFETTO_BUILDFLAG(PERFETTO_OS_WIN)
#include <Windows.h>
#include <synchapi.h>
#else
#include <unistd.h>
#endif

#include <algorithm>
#include <limits>

#include "perfetto/ext/base/watchdog.h"

namespace perfetto {
namespace base {

UnixTaskRunner::UnixTaskRunner() {}

UnixTaskRunner::~UnixTaskRunner() = default;

void UnixTaskRunner::WakeUp() {}

void UnixTaskRunner::Run() {}

void UnixTaskRunner::Quit() {}

bool UnixTaskRunner::QuitCalled() {}

bool UnixTaskRunner::IsIdleForTesting() {}

void UnixTaskRunner::UpdateWatchTasksLocked() {}

void UnixTaskRunner::RunImmediateAndDelayedTask() {}

void UnixTaskRunner::PostFileDescriptorWatches(uint64_t windows_wait_result) {}

void UnixTaskRunner::RunFileDescriptorWatch(PlatformHandle fd) {}

int UnixTaskRunner::GetDelayMsToNextTaskLocked() const {}

void UnixTaskRunner::PostTask(std::function<void()> task) {}

void UnixTaskRunner::PostDelayedTask(std::function<void()> task,
                                     uint32_t delay_ms) {}

void UnixTaskRunner::AddFileDescriptorWatch(PlatformHandle fd,
                                            std::function<void()> task) {}

void UnixTaskRunner::RemoveFileDescriptorWatch(PlatformHandle fd) {}

bool UnixTaskRunner::RunsTasksOnCurrentThread() const {}

}  // namespace base
}  // namespace perfetto