1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
|
<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- saved from url=(0014)about:internet -->
<html xmlns:MSHelp="http://www.microsoft.com/MSHelp/" lang="en-us" xml:lang="en-us"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="Which Dynamic Libraries to Use">
<meta name="DC.subject" content="Which Dynamic Libraries to Use">
<meta name="keywords" content="Which Dynamic Libraries to Use">
<meta name="DC.Relation" scheme="URI" content="../tbb_userguide/Memory_Allocation.htm">
<meta name="DC.Relation" scheme="URI" content="Scalable_Memory_Allocator.htm#tutorial_Scalable_Memory_Allocator">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="tutorial_Which_Dynamic_Libraries_to_Use">
<link rel="stylesheet" type="text/css" href="../intel_css_styles.css">
<title>Which Dynamic Libraries to Use</title>
<xml>
<MSHelp:Attr Name="DocSet" Value="Intel"></MSHelp:Attr>
<MSHelp:Attr Name="Locale" Value="kbEnglish"></MSHelp:Attr>
<MSHelp:Attr Name="TopicType" Value="kbReference"></MSHelp:Attr>
</xml>
</head>
<body id="tutorial_Which_Dynamic_Libraries_to_Use">
<!-- ==============(Start:NavScript)================= -->
<script src="..\NavScript.js" language="JavaScript1.2" type="text/javascript"></script>
<script language="JavaScript1.2" type="text/javascript">WriteNavLink(1);</script>
<!-- ==============(End:NavScript)================= -->
<a name="tutorial_Which_Dynamic_Libraries_to_Use"><!-- --></a>
<h1 class="topictitle1">Which Dynamic Libraries to Use</h1>
<div>
<p>The template
<samp class="codeph">scalable_allocator<T></samp> requires the Intel® Threading Building Blocks (Intel® TBB)
scalable memory allocator library as described in
<strong>Scalable Memory Allocator</strong>. It does not require the Intel® TBB
general library, and can be used independently of the rest of Intel® TBB.
</p>
<p>The templates
<samp class="codeph">tbb_allocator<T></samp> and
<samp class="codeph">cache_aligned_allocator<T></samp> use the scalable
allocator library if it is present otherwise it reverts to using
<samp class="codeph">malloc</samp> and
<samp class="codeph">free</samp>. Thus, you can use these templates even in
applications that choose to omit the scalable memory allocator library.
</p>
<p>The rest of Intel® Threading Building Blocks can be used with or without
the Intel® TBB scalable memory allocator library.
</p>
<div class="tablenoborder"><a name="tbl15"><!-- --></a><table cellpadding="4" summary="" id="tbl15" width="100%" frame="border" border="1" cellspacing="0" rules="all"><caption><span class="tablecap">Templates and Libraries</span></caption>
<thead align="left">
<tr>
<th class="cellrowborder" valign="top" width="37.77777777777778%" id="d151616e64">
<p>Template
</p>
</th>
<th class="cellrowborder" valign="top" width="36.11111111111111%" id="d151616e70">
<p>Requirements
</p>
</th>
<th class="cellrowborder" valign="top" width="26.111111111111114%" id="d151616e76">
<p>Notes
</p>
</th>
</tr>
</thead>
<tbody>
<tr>
<td class="cellrowborder" valign="top" width="37.77777777777778%" headers="d151616e64 ">
<p><samp class="codeph">scalable_allocator<T></samp>
</p>
</td>
<td class="cellrowborder" valign="top" width="36.11111111111111%" headers="d151616e70 ">
<p>Intel® Threading Building Blocks scalable memory allocator
library. See
<strong>Scalable Memory Allocator</strong>.
</p>
</td>
<td class="cellrowborder" valign="top" width="26.111111111111114%" headers="d151616e76 ">
<p>
</p>
</td>
</tr>
<tr>
<td class="cellrowborder" valign="top" width="37.77777777777778%" headers="d151616e64 ">
<p><samp class="codeph">tbb_allocator<T></samp>
</p>
<p><samp class="codeph">cache_aligned_allocator<T></samp>
</p>
</td>
<td class="cellrowborder" valign="top" width="36.11111111111111%" headers="d151616e70 ">
<p>
</p>
</td>
<td class="cellrowborder" valign="top" width="26.111111111111114%" headers="d151616e76 ">
<p>Uses the scalable allocator library if it is present, otherwise it
reverts to using
<samp class="codeph">malloc</samp> and
<samp class="codeph">free</samp>.
</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="../tbb_userguide/Memory_Allocation.htm">Memory Allocation</a></div>
</div>
<div class="See Also">
<h2>See Also</h2>
<div class="linklist">
<div><a href="Scalable_Memory_Allocator.htm#tutorial_Scalable_Memory_Allocator">Scalable Memory Allocator
</a></div></div>
</div>
</body>
</html>
|