chromium/third_party/grpc/src/src/core/lib/event_engine/posix_engine/timer_manager.cc

//
//
// Copyright 2017 gRPC authors.
//
// 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 <grpc/support/port_platform.h>

#include "src/core/lib/event_engine/posix_engine/timer_manager.h"

#include <memory>
#include <utility>

#include "absl/time/time.h"
#include "absl/types/optional.h"

#include <grpc/support/log.h>
#include <grpc/support/time.h>

#include "src/core/lib/debug/trace.h"
#include "src/core/lib/gprpp/thd.h"

static thread_local bool g_timer_thread;

namespace grpc_event_engine {
namespace experimental {

grpc_core::DebugOnlyTraceFlag grpc_event_engine_timer_trace(false, "timer");

void TimerManager::RunSomeTimers(
    std::vector<experimental::EventEngine::Closure*> timers) {}

// wait until 'next' (or forever if there is already a timed waiter in the pool)
// returns true if the thread should continue executing (false if it should
// shutdown)
bool TimerManager::WaitUntil(grpc_core::Timestamp next) {}

void TimerManager::MainLoop() {}

bool TimerManager::IsTimerManagerThread() {}

void TimerManager::StartMainLoopThread() {}

TimerManager::TimerManager(
    std::shared_ptr<grpc_event_engine::experimental::ThreadPool> thread_pool)
    :{}

grpc_core::Timestamp TimerManager::Host::Now() {}

void TimerManager::TimerInit(Timer* timer, grpc_core::Timestamp deadline,
                             experimental::EventEngine::Closure* closure) {}

bool TimerManager::TimerCancel(Timer* timer) {}

void TimerManager::Shutdown() {}

TimerManager::~TimerManager() {}

void TimerManager::Host::Kick() {}

void TimerManager::Kick() {}

void TimerManager::RestartPostFork() {}

void TimerManager::PrepareFork() {}
void TimerManager::PostforkParent() {}
void TimerManager::PostforkChild() {}

}  // namespace experimental
}  // namespace grpc_event_engine