folly/folly/fibers/Fiber.cpp

/*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * 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 <folly/fibers/Fiber.h>

#include <algorithm>
#include <cstring>
#include <stdexcept>

#include <glog/logging.h>

#include <folly/Likely.h>
#include <folly/Portability.h>
#include <folly/fibers/FiberManagerInternal.h>
#include <folly/portability/SysSyscall.h>
#include <folly/portability/Unistd.h>

namespace folly {
namespace fibers {

namespace {
const uint64_t kMagic8Bytes =;

/* Size of the region from p + nBytes down to the last non-magic value */
size_t nonMagicInBytes(unsigned char* stackLimit, size_t stackSize) {}

} // namespace

void Fiber::resume() {}

Fiber::Fiber(FiberManager& fiberManager)
    :{}

void Fiber::init(bool recordStackUsed) {}

Fiber::~Fiber() {}

void Fiber::recordStackPosition() {}

[[noreturn]] void Fiber::fiberFunc() {}

void Fiber::preempt(State state) {}

folly::Optional<std::chrono::nanoseconds> Fiber::getRunningTime() const {}

Fiber::LocalData::~LocalData() {}

Fiber::LocalData::LocalData(const LocalData& other) :{}

Fiber::LocalData& Fiber::LocalData::operator=(const LocalData& other) {}

void Fiber::LocalData::reset() {}

} // namespace fibers
} // namespace folly