summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/os_posix/os_yield.c
blob: 37d05bc1854734d75dc1aa4c381906fdf5ca1a41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*-
 * Copyright (c) 2014-2016 MongoDB, Inc.
 * Copyright (c) 2008-2014 WiredTiger, Inc.
 *	All rights reserved.
 *
 * See the file LICENSE for redistribution information.
 */

#include "wt_internal.h"

/*
 * __wt_yield --
 *	Yield the thread of control.
 */
void
__wt_yield(void)
    WT_GCC_FUNC_ATTRIBUTE((visibility("default")))
{
	sched_yield();
}