blob: b1a0e9d7798d99181cc0cc97914d9b2a3bf385b7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "opentelemetry/version.h"
OPENTELEMETRY_BEGIN_NAMESPACE
namespace sdk
{
namespace common
{
namespace platform
{
/**
* Portable wrapper for pthread_atfork.
* See
* https://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_atfork.html
*/
int AtFork(void (*prepare)(), void (*parent)(), void (*child)()) noexcept;
} // namespace platform
} // namespace common
} // namespace sdk
OPENTELEMETRY_END_NAMESPACE
|