blob: 96483e4aaab023246e2c26c97fd3ef2533f83363 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/*-
* Copyright (c) 2014-2019 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
* See the file LICENSE for redistribution information.
*/
#include "wt_internal.h"
/*
* __wt_once --
* One-time initialization per process.
*/
int
__wt_once(void (*init_routine)(void))
{
static pthread_once_t once_control = PTHREAD_ONCE_INIT;
return (pthread_once(&once_control, init_routine));
}
|