mirror of
https://github.com/boostorg/thread.git
synced 2026-01-22 17:52:18 +00:00
95 lines
4.1 KiB
HTML
95 lines
4.1 KiB
HTML
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
<link rel="stylesheet" type="text/css" href="../../../boost.css">
|
|
<title>Boost.Threads - Configuration</title>
|
|
</head>
|
|
<body link="#0000ff" vlink="#800080">
|
|
<table border="0" cellpadding="7" cellspacing="0" width="100%" summary=
|
|
"header">
|
|
<tr>
|
|
<td valign="top" width="300">
|
|
<h3><a href="../../../index.htm"><img height="86" width="277" alt="C++ Boost" src="../../../c++boost.gif" border="0"></a></h3>
|
|
</td>
|
|
<td valign="top">
|
|
<h1 align="center">Boost.Threads</h1>
|
|
<h2 align="center">Configuration</h2>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<hr>
|
|
<dl class="page-index">
|
|
<dt><a href="#introduction">Introduction</a></dt>
|
|
<dt><a href="#lib-defined-public">Public Library Defined Macros</a></dt>
|
|
<dt><a href="#lib-defined-impl">Library Defined Implementation Macros</a></dt>
|
|
</dl>
|
|
<h2><a name="introduction"></a>Introduction</h2>
|
|
<p><b>Boost.Threads</b> uses several configuration macros in <a href="../../config/config.htm"><boost/config.hpp></a>,
|
|
as well as configuration macros meant to be supplied by the application. These
|
|
macros are documented here.</p>
|
|
<h2><a name="lib-defined-public"></a>Public Library Defined Macros</h2>
|
|
<p>These macros are defined by <b>Boost.Threads</b> but are expected to be used
|
|
by application code.</p>
|
|
<table summary="public library defined macros" cellspacing="10" width="100%">
|
|
<tr>
|
|
<td><b>Macro</b></td>
|
|
<td><b>Meaning</b></td>
|
|
</tr>
|
|
<tr>
|
|
<td>BOOST_HAS_THREADS</td>
|
|
<td>Indicates that threading support is available. This means both that there
|
|
is a platform specific implementation for <b>Boost.Threads</b> and that
|
|
threading support has been enabled in a platform specific manner. For instance,
|
|
on the Win32 platform there's an implementation for <b>Boost.Threads</b>
|
|
but unless the program is compiled against one of the multithreading runtimes
|
|
(often determined by the compiler predefining the macro _MT) the BOOST_HAS_THREADS
|
|
macro remains undefined.</td>
|
|
</tr>
|
|
</table>
|
|
<h2><a name="lib-defined-impl"></a>Library Defined Implementation Macros</h2>
|
|
<p>These macros are defined by <b>Boost.Threads</b> and are implementation details
|
|
of interest only to implementors.</p>
|
|
<table summary="library defined implementation macros" cellspacing="10" width="100%">
|
|
<tr>
|
|
<td><b>Macro</b></td>
|
|
<td><b>Meaning</b></td>
|
|
</tr>
|
|
<tr>
|
|
<td>BOOST_HAS_WINTHREADS</td>
|
|
<td>Indicates that the platform has the Microsoft Win32 threading libraries,
|
|
and that they should be used to implement <b>Boost.Threads</b>.</td>
|
|
</tr>
|
|
<tr>
|
|
<td>BOOST_HAS_PTHREADS</td>
|
|
<td>Indicates that the platform has the POSIX pthreads libraries, and that
|
|
they should be used to implement <b>Boost.Threads</b>.</td>
|
|
</tr>
|
|
<tr>
|
|
<td>BOOST_HAS_FTIME</td>
|
|
<td>Indicates that the implementation should use GetSystemTimeAsFileTime()
|
|
and the FILETIME type to calculate the current time. This is an implementation
|
|
detail used by boost::detail::getcurtime().</td>
|
|
</tr>
|
|
<tr>
|
|
<td>BOOST_HAS_GETTTIMEOFDAY</td>
|
|
<td>Indicates that the implementation should use gettimeofday() to calculate
|
|
the current time. This is an implementation detail used by boost::detail::getcurtime().</td>
|
|
</tr>
|
|
</table>
|
|
<hr>
|
|
<p>Revised
|
|
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->
|
|
05 November, 2001
|
|
<!--webbot bot="Timestamp" endspan i-checksum="39359" -->
|
|
</p>
|
|
<p><i>© Copyright <a href="mailto:wekempf@cox.net">William E. Kempf</a> 2001-2002.
|
|
All Rights Reserved.</i></p>
|
|
<p>Permission to use, copy, modify, distribute and sell this software and its
|
|
documentation for any purpose is hereby granted without fee, provided that the
|
|
above copyright notice appear in all copies and that both that copyright notice
|
|
and this permission notice appear in supporting documentation. William E. Kempf
|
|
makes no representations about the suitability of this software for any purpose.
|
|
It is provided "as is" without express or implied warranty.</p>
|
|
</body>
|
|
</html>
|