summaryrefslogtreecommitdiff
path: root/usr/src/man/man3c/smt_pause.3c
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2014-12-22 16:01:41 +0000
committerRobert Mustacchi <rm@joyent.com>2014-12-27 08:30:25 -0800
commitd3864341aacc6a2ecc95960d23ac0e49f1f538fa (patch)
tree36c26be6c16a3bcbb7ade89e4617c239cff443ef /usr/src/man/man3c/smt_pause.3c
parentad0ef8fd06d1ac28108685495a9ba1244a20a5ca (diff)
downloadillumos-gate-d3864341aacc6a2ecc95960d23ac0e49f1f538fa.tar.gz
5478 need smt_pause(3C)
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com> Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/man/man3c/smt_pause.3c')
-rw-r--r--usr/src/man/man3c/smt_pause.3c38
1 files changed, 38 insertions, 0 deletions
diff --git a/usr/src/man/man3c/smt_pause.3c b/usr/src/man/man3c/smt_pause.3c
new file mode 100644
index 0000000000..2a890c4977
--- /dev/null
+++ b/usr/src/man/man3c/smt_pause.3c
@@ -0,0 +1,38 @@
+.\"
+.\" This file and its contents are supplied under the terms of the
+.\" Common Development and Distribution License ("CDDL"), version 1.0.
+.\" You may only use this file in accordance with the terms of version
+.\" 1.0 of the CDDL.
+.\"
+.\" A full copy of the text of the CDDL should have accompanied this
+.\" source. A copy of the CDDL is also available via the Internet at
+.\" http://www.illumos.org/license/CDDL.
+.\"
+.\"
+.\" Copyright (c) 2014, Joyent, Inc.
+.\"
+.Dd "Dec 22, 2014"
+.Dt SMT_PAUSE 3C
+.Os
+.Sh NAME
+.Nm smt_pause
+.Nd hardware-aware busy wait
+.Sh SYNOPSIS
+.In synch.h
+.Ft void
+.Fo smt_pause
+.Fa void
+.Fc
+.Sh DESCRIPTION
+The
+.Fn smt_pause
+function performs a busy-wait for an implementation defined period of
+time. On hardware platforms that support it, it notifies the hardware
+that this is occurring in an effort to minimize resource usage. This is
+commonly used in the implementation of spin loops.
+.Sh INTERFACE STABILITY
+.Sy Committed
+.Sh MT-LEVEL
+.Sy MT-Safe
+.Sh SEE ALSO
+.Xr attributes 5