blob: 41926bbfe7dbb576a3c1e4219ffa8f1a77fe560a (
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
|
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
#include "opentelemetry/version.h"
#include "src/common/platform/fork.h"
#include <pthread.h>
OPENTELEMETRY_BEGIN_NAMESPACE
namespace sdk
{
namespace common
{
namespace platform
{
int AtFork(void (*prepare)(), void (*parent)(), void (*child)()) noexcept
{
return ::pthread_atfork(prepare, parent, child);
}
} // namespace platform
} // namespace common
} // namespace sdk
OPENTELEMETRY_END_NAMESPACE
|