3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Acknowledgements, notes and links</title>
5 <link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7 <link rel="home" href="../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
8 <link rel="up" href="../interprocess.html" title="Chapter 14. Boost.Interprocess">
9 <link rel="prev" href="customizing_interprocess.html" title="Customizing Boost.Interprocess">
10 <link rel="next" href="indexes_reference.html" title="Indexes and Reference">
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table cellpadding="2" width="100%"><tr>
14 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../boost.png"></td>
15 <td align="center"><a href="../../../index.html">Home</a></td>
16 <td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td>
17 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19 <td align="center"><a href="../../../more/index.htm">More</a></td>
22 <div class="spirit-nav">
23 <a accesskey="p" href="customizing_interprocess.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../interprocess.html"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="indexes_reference.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
26 <div class="titlepage"><div><div><h2 class="title" style="clear: both">
27 <a name="interprocess.acknowledgements_notes"></a><a class="link" href="acknowledgements_notes.html" title="Acknowledgements, notes and links">Acknowledgements,
29 </h2></div></div></div>
30 <div class="toc"><dl class="toc">
31 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.notes_windows">Notes
32 for Windows users</a></span></dt>
33 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.notes_linux">Notes
34 for Linux users</a></span></dt>
35 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.thanks_to">Thanks
37 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes">Release
39 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.books_and_links">Books
40 and interesting links</a></span></dt>
41 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.future_improvements">Future
42 improvements...</a></span></dt>
45 <div class="titlepage"><div><div><h3 class="title">
46 <a name="interprocess.acknowledgements_notes.notes_windows"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.notes_windows" title="Notes for Windows users">Notes
48 </h3></div></div></div>
49 <div class="toc"><dl class="toc">
50 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.notes_windows.notes_windows_com_init">COM
51 Initialization</a></span></dt>
52 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.notes_windows.notes_windows_shm_folder">Shared
53 memory emulation folder</a></span></dt>
54 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.notes_windows.boost_use_windows_h">BOOST_USE_WINDOWS_H
55 support</a></span></dt>
58 <div class="titlepage"><div><div><h4 class="title">
59 <a name="interprocess.acknowledgements_notes.notes_windows.notes_windows_com_init"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.notes_windows.notes_windows_com_init" title="COM Initialization">COM
61 </h4></div></div></div>
63 <span class="bold"><strong>Boost.Interprocess</strong></span> uses the Windows COM
64 library to implement some features and initializes it with concurrency
65 model <code class="computeroutput"><span class="identifier">COINIT_APARTMENTTHREADED</span></code>.
66 If the COM library was already initialized by the calling thread for another
67 concurrency model, <span class="bold"><strong>Boost.Interprocess</strong></span>
68 handles this gracefully and uses COM calls for the already initialized
69 model. If for some reason, you want <span class="bold"><strong>Boost.Interprocess</strong></span>
70 to initialize the COM library with another model, define the macro <code class="computeroutput"><span class="identifier">BOOST_INTERPROCESS_WINDOWS_COINIT_MODEL</span></code>
71 before including <span class="bold"><strong>Boost.Interprocess</strong></span> to
74 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
76 <code class="computeroutput"><span class="identifier">COINIT_APARTMENTTHREADED_BIPC</span></code>
79 <code class="computeroutput"><span class="identifier">COINIT_MULTITHREADED_BIPC</span></code>
82 <code class="computeroutput"><span class="identifier">COINIT_DISABLE_OLE1DDE_BIPC</span></code>
85 <code class="computeroutput"><span class="identifier">COINIT_SPEED_OVER_MEMORY_BIPC</span></code>
90 <div class="titlepage"><div><div><h4 class="title">
91 <a name="interprocess.acknowledgements_notes.notes_windows.notes_windows_shm_folder"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.notes_windows.notes_windows_shm_folder" title="Shared memory emulation folder">Shared
92 memory emulation folder</a>
93 </h4></div></div></div>
95 Shared memory (<code class="computeroutput"><span class="identifier">shared_memory_object</span></code>)
96 is implemented in windows using memory mapped files, placed in a shared
97 directory in the shared documents folder (<code class="computeroutput"><span class="identifier">SOFTWARE</span><span class="special">\</span><span class="identifier">Microsoft</span><span class="special">\</span><span class="identifier">Windows</span><span class="special">\</span><span class="identifier">CurrentVersion</span><span class="special">\</span><span class="identifier">Explorer</span><span class="special">\</span><span class="identifier">Shell</span> <span class="identifier">Folders</span><span class="special">\</span><span class="identifier">Common</span> <span class="identifier">AppData</span></code>).
98 This directory name is the last bootup time obtained via COM calls (if
99 <code class="computeroutput"><span class="identifier">BOOST_INTERPROCESS_BOOTSTAMP_IS_LASTBOOTUPTIME</span></code>)
100 defined or searching the system log for a startup event (the default implementation),
101 so that each bootup shared memory is created in a new folder obtaining
102 kernel persistence shared memory.
105 If using <code class="computeroutput"><span class="identifier">BOOST_INTERPROCESS_BOOTSTAMP_IS_LASTBOOTUPTIME</span></code>,
106 due to COM implementation related errors, in Boost 1.48 & Boost 1.49
107 the bootup-time folder was dumped and files were directly created in shared
108 documents folder, reverting to filesystem persistence shared memory. Boost
109 1.50 fixed those issues and recovered bootup time directory and kernel
110 persistence. If you need to reproduce Boost 1.48 & Boost 1.49 behaviour
111 to communicate with applications compiled with that version, comment <code class="computeroutput"><span class="preprocessor">#define</span> <span class="identifier">BOOST_INTERPROCESS_HAS_KERNEL_BOOTTIME</span></code>
112 directive in the Windows configuration part of <code class="computeroutput"><span class="identifier">boost</span><span class="special">/</span><span class="identifier">interprocess</span><span class="special">/</span><span class="identifier">detail</span><span class="special">/</span><span class="identifier">workaround</span><span class="special">.</span><span class="identifier">hpp</span></code>.
115 If using the default implementation, (<code class="computeroutput"><span class="identifier">BOOST_INTERPROCESS_BOOTSTAMP_IS_LASTBOOTUPTIME</span></code>
116 undefined) and the Startup Event is not found, this might be due to some
117 buggy software that floods or erases the event log.
120 In any error case (shared documents folder is not defined or bootup time
121 could not be obtained, the library throws an error. You still can use
122 <span class="bold"><strong>Boost.Interprocess</strong></span> definining your own
123 directory as the shared directory. Just define <code class="computeroutput"><span class="identifier">BOOST_INTERPROCESS_SHARED_DIR_PATH</span></code>
124 when using the library and that path will be used to place shared memory
128 <div class="section">
129 <div class="titlepage"><div><div><h4 class="title">
130 <a name="interprocess.acknowledgements_notes.notes_windows.boost_use_windows_h"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.notes_windows.boost_use_windows_h" title="BOOST_USE_WINDOWS_H support">BOOST_USE_WINDOWS_H
132 </h4></div></div></div>
134 If <code class="computeroutput"><span class="identifier">BOOST_USE_WINDOWS_H</span></code>
135 is defined, <windows.h> and other windows SDK files are included,
136 otherwise the library declares needed functions and structures to reduce
137 the impact of including those heavy headers.
141 <div class="section">
142 <div class="titlepage"><div><div><h3 class="title">
143 <a name="interprocess.acknowledgements_notes.notes_linux"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.notes_linux" title="Notes for Linux users">Notes
145 </h3></div></div></div>
146 <div class="toc"><dl class="toc">
147 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.notes_linux.notes_linux_shm_folder">Shared
148 memory emulation folder</a></span></dt>
149 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.notes_linux.notes_linux_overcommit">Overcommit</a></span></dt>
151 <div class="section">
152 <div class="titlepage"><div><div><h4 class="title">
153 <a name="interprocess.acknowledgements_notes.notes_linux.notes_linux_shm_folder"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.notes_linux.notes_linux_shm_folder" title="Shared memory emulation folder">Shared
154 memory emulation folder</a>
155 </h4></div></div></div>
157 On systems without POSIX shared memory support shared memory objects are
158 implemented as memory mapped files, using a directory placed in "/tmp"
159 that can include (if <code class="computeroutput"><span class="identifier">BOOST_INTERPROCESS_HAS_KERNEL_BOOTTIME</span></code>
160 is defined) the last bootup time (if the Os supports it). As in Windows,
161 in any error case obtaining this directory the library throws an error
162 . You still can use <span class="bold"><strong>Boost.Interprocess</strong></span>
163 definining your own directory as the shared directory. Just define <code class="computeroutput"><span class="identifier">BOOST_INTERPROCESS_SHARED_DIR_PATH</span></code> when
164 using the library and that path will be used to place shared memory files.
167 <div class="section">
168 <div class="titlepage"><div><div><h4 class="title">
169 <a name="interprocess.acknowledgements_notes.notes_linux.notes_linux_overcommit"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.notes_linux.notes_linux_overcommit" title="Overcommit">Overcommit</a>
170 </h4></div></div></div>
172 The committed address space is the total amount of virtual memory (swap
173 or physical memory/RAM) that the kernel might have to supply if all applications
174 decide to access all of the memory they've requested from the kernel. By
175 default, Linux allows processes to commit more virtual memory than available
176 in the system. If that memory is not accessed, no physical memory + swap
180 The reason for this behaviour is that Linux tries to optimize memory usage
181 on forked processes; fork() creates a full copy of the process space, but
182 with overcommitted memory, in this new forked instance only pages which
183 have been written to actually need to be allocated by the kernel. If applications
184 access more memory than available, then the kernel must free memory in
185 the hard way: the OOM (Out Of Memory)-killer picks some processes to kill
186 in order to recover memory.
189 <span class="bold"><strong>Boost.Interprocess</strong></span> has no way to change
190 this behaviour and users might suffer the OOM-killer when accessing shared
191 memory. According to the <a href="http://www.kernel.org/doc/Documentation/vm/overcommit-accounting" target="_top">Kernel
192 documentation</a>, the Linux kernel supports several overcommit modes.
193 If you need non-kill guarantees in your application, you should change
194 this overcommit behaviour.
198 <div class="section">
199 <div class="titlepage"><div><div><h3 class="title">
200 <a name="interprocess.acknowledgements_notes.thanks_to"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.thanks_to" title="Thanks to...">Thanks
202 </h3></div></div></div>
204 Many people have contributed with ideas and revisions, so this is the place
207 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
208 <li class="listitem">
209 Thanks to all people who have shown interest in the library and have
210 downloaded and tested the snapshots.
212 <li class="listitem">
213 Thanks to <span class="bold"><strong>Francis Andre</strong></span> and <span class="bold"><strong>Anders Hybertz</strong></span> for their ideas and suggestions.
214 Many of them are not implemented yet but I hope to include them when
215 library gets some stability.
217 <li class="listitem">
218 Thanks to <span class="bold"><strong>Matt Doyle</strong></span>, <span class="bold"><strong>Steve
219 LoBasso</strong></span>, <span class="bold"><strong>Glenn Schrader</strong></span>,
220 <span class="bold"><strong>Hiang Swee Chiang</strong></span>, <span class="bold"><strong>Phil
221 Endecott</strong></span>, <span class="bold"><strong>Rene Rivera</strong></span>, <span class="bold"><strong>Harold Pirtle</strong></span>, <span class="bold"><strong>Paul Ryan</strong></span>,
222 <span class="bold"><strong>Shumin Wu</strong></span>, <span class="bold"><strong>Michal
223 Wozniak</strong></span>, <span class="bold"><strong>Peter Johnson</strong></span>,
224 <span class="bold"><strong>Alex Ott</strong></span>, <span class="bold"><strong>Shane
225 Guillory</strong></span>, <span class="bold"><strong>Steven Wooding</strong></span>
226 and <span class="bold"><strong>Kim Barrett</strong></span> for their bug fixes
229 <li class="listitem">
230 Thanks to <span class="bold"><strong>Martin Adrian</strong></span> who suggested
231 the use of Interprocess framework for user defined buffers.
233 <li class="listitem">
234 Thanks to <span class="bold"><strong>Synge Todo</strong></span> for his boostbook-doxygen
235 patch to improve Interprocess documentation.
237 <li class="listitem">
238 Thanks to <span class="bold"><strong>Olaf Krzikalla</strong></span> for his Intrusive
239 library. I have taken some ideas to improve red black tree implementation
242 <li class="listitem">
243 Thanks to <span class="bold"><strong>Daniel James</strong></span> for his unordered_map/set
244 family and his help with allocators. His great unordered implementation
245 has been a reference to design exception safe containers.
247 <li class="listitem">
248 Thanks to <span class="bold"><strong>Howard Hinnant</strong></span> for his amazing
249 help, specially explaining allocator swapping, move semantics and for
250 developing upgradable mutex and lock transfer features.
252 <li class="listitem">
253 Thanks to <span class="bold"><strong>Pavel Vozenilek</strong></span> for his continuous
254 review process, suggestions, code and help. He is the major supporter
255 of Interprocess library. The library has grown with his many and great
258 <li class="listitem">
259 And finally, thank you to all Boosters. <span class="bold"><strong>Long live
260 to C++!</strong></span>
264 <div class="section">
265 <div class="titlepage"><div><div><h3 class="title">
266 <a name="interprocess.acknowledgements_notes.release_notes"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes" title="Release Notes">Release
268 </h3></div></div></div>
269 <div class="toc"><dl class="toc">
270 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_57_00">Boost
271 1.57 Release</a></span></dt>
272 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_56_00">Boost
273 1.56 Release</a></span></dt>
274 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_55_00">Boost
275 1.55 Release</a></span></dt>
276 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_54_00">Boost
277 1.54 Release</a></span></dt>
278 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_53_00">Boost
279 1.53 Release</a></span></dt>
280 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_52_00">Boost
281 1.52 Release</a></span></dt>
282 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_51_00">Boost
283 1.51 Release</a></span></dt>
284 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_50_00">Boost
285 1.50 Release</a></span></dt>
286 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_49_00">Boost
287 1.49 Release</a></span></dt>
288 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_48_00">Boost
289 1.48 Release</a></span></dt>
290 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_46_00">Boost
291 1.46 Release</a></span></dt>
292 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_45_00">Boost
293 1.45 Release</a></span></dt>
294 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_41_00">Boost
295 1.41 Release</a></span></dt>
296 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_40_00">Boost
297 1.40 Release</a></span></dt>
298 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_39_00">Boost
299 1.39 Release</a></span></dt>
300 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_38_00">Boost
301 1.38 Release</a></span></dt>
302 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_37_00">Boost
303 1.37 Release</a></span></dt>
304 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_36_00">Boost
305 1.36 Release</a></span></dt>
306 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_35_00">Boost
307 1.35 Release</a></span></dt>
309 <div class="section">
310 <div class="titlepage"><div><div><h4 class="title">
311 <a name="interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_57_00"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_57_00" title="Boost 1.57 Release">Boost
313 </h4></div></div></div>
314 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
315 <li class="listitem">
316 Removed <code class="computeroutput"><span class="identifier">unique_ptr</span></code>,
317 now forwards boost::interprocess::unique_ptr to the general purpose
318 <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">movelib</span><span class="special">::</span><span class="identifier">unique_ptr</span></code> class from <span class="bold"><strong>Boost.Move</strong></span>.
319 This implementation is closer to the standard <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">unique_ptr</span></code>
320 implementation and it's better maintained.
322 <li class="listitem">
324 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: circle; ">
325 <li class="listitem">
326 <a href="https://svn.boost.org/trac/boost/ticket/10262" target="_top">Trac
327 #10262 (<span class="emphasis"><em>"AIX 6.1 bug with variable definition
328 hz"</em></span>)</a>.
330 <li class="listitem">
331 <a href="https://svn.boost.org/trac/boost/ticket/10229" target="_top">Trac
332 #10229 (<span class="emphasis"><em>"Compiling errors in interprocess\detail\os_file_functions.hpp"</em></span>)</a>.
334 <li class="listitem">
335 <a href="https://svn.boost.org/trac/boost/ticket/10506" target="_top">Trac
336 #10506 (<span class="emphasis"><em>"Infinite loop in create_or_open_file"</em></span>)</a>.
338 <li class="listitem">
339 <a href="https://github.com/boostorg/interprocess/pull/11" target="_top">GitHub
340 Pull #11 (<span class="emphasis"><em>"Compile fix for BOOST_USE_WINDOWS_H"</em></span>)</a>.
344 <li class="listitem">
345 Reorganized Doxygen marks to obtain a better header reference.
349 <div class="section">
350 <div class="titlepage"><div><div><h4 class="title">
351 <a name="interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_56_00"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_56_00" title="Boost 1.56 Release">Boost
353 </h4></div></div></div>
354 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
355 <li class="listitem">
357 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: circle; ">
358 <li class="listitem">
359 <a href="https://svn.boost.org/trac/boost/ticket/9221" target="_top">Trac
360 #9221 (<span class="emphasis"><em>"message_queue deadlock on linux"</em></span>)</a>.
362 <li class="listitem">
363 <a href="https://svn.boost.org/trac/boost/ticket/9226" target="_top">Trac
364 #9226 (<span class="emphasis"><em>"On some computers, Common Appdata is empty
365 in registry, so boost interprocess cannot work"</em></span>)</a>.
367 <li class="listitem">
368 <a href="https://svn.boost.org/trac/boost/ticket/9262" target="_top">Trac
369 #9262 (<span class="emphasis"><em>"windows_intermodule_singleton breaks when
370 calling a Debug dll from a Release executable"</em></span>)</a>.
372 <li class="listitem">
373 <a href="https://svn.boost.org/trac/boost/ticket/9284" target="_top">Trac
374 #9284 (<span class="emphasis"><em>"WaitForSingleObject(mutex) must handle
375 WAIT_ABANDONED"</em></span>)</a>.
377 <li class="listitem">
378 <a href="https://svn.boost.org/trac/boost/ticket/9285" target="_top">Trac
379 #9285 (<span class="emphasis"><em>"CreateMutex returns NULL if fails"</em></span>)</a>.
381 <li class="listitem">
382 <a href="https://svn.boost.org/trac/boost/ticket/9288" target="_top">Trac
383 #9288 (<span class="emphasis"><em>"timed_wait does not check if it has expired"</em></span>)</a>.
385 <li class="listitem">
386 <a href="https://svn.boost.org/trac/boost/ticket/9408" target="_top">Trac
387 #9408 (<span class="emphasis"><em>"Android does not support XSI_SHARED_MEMORY_OBJECTS"</em></span></a>).
389 <li class="listitem">
390 <a href="https://svn.boost.org/trac/boost/ticket/9729" target="_top">Trac
391 #9729 (<span class="emphasis"><em>"crash on managed_external_buffer object
392 construction"</em></span></a>).
394 <li class="listitem">
395 <a href="https://svn.boost.org/trac/boost/ticket/9767" target="_top">Trac
396 #9767 (<span class="emphasis"><em>"bootstamp generation causes error in case
397 of corrupt Windows Event Log"</em></span>)</a>.
399 <li class="listitem">
400 <a href="https://svn.boost.org/trac/boost/ticket/9835" target="_top">Trac
401 #9835 (<span class="emphasis"><em>"Boost Interprocess fails to compile with
402 Android NDK GCC 4.8, -Werror=unused-variable"</em></span>)</a>.
404 <li class="listitem">
405 <a href="https://svn.boost.org/trac/boost/ticket/9911" target="_top">Trac
406 #9911 (<span class="emphasis"><em>"get_tmp_base_dir(...) failure"</em></span>)</a>.
408 <li class="listitem">
409 <a href="https://svn.boost.org/trac/boost/ticket/9946" target="_top">Trac
410 #9946 (<span class="emphasis"><em>"ret_ptr uninitialized in init_atomic_func,
411 fini_atomic_func"</em></span>)</a>.
413 <li class="listitem">
414 <a href="https://svn.boost.org/trac/boost/ticket/10011" target="_top">Trac
415 #10011 (<span class="emphasis"><em>"segment_manager::find( unique_instance_t*
416 ) fails to compile"</em></span>)</a>.
418 <li class="listitem">
419 <a href="https://svn.boost.org/trac/boost/ticket/10021" target="_top">Trac
420 #10021 (<span class="emphasis"><em>"Interprocess and BOOST_USE_WINDOWS_H"</em></span>)</a>.
422 <li class="listitem">
423 <a href="https://svn.boost.org/trac/boost/ticket/10230" target="_top">Trac
424 #10230 (<span class="emphasis"><em>"No Sleep in interprocess::winapi"</em></span>)</a>.
426 <li class="listitem">
427 <a href="https://github.com/boostorg/interprocess/pull/2" target="_top">GitHub
428 Pull #2</a> (<span class="emphasis"><em>"Provide support for the Cray
429 C++ compiler. The Cray compiler defines __GNUC__"</em></span>]).
431 <li class="listitem">
432 <a href="https://github.com/boostorg/interprocess/pull/3" target="_top">GitHub
433 Pull #3</a> (<span class="emphasis"><em>"Fix/mingw interprocess_exception
434 throw in file_wrapper::priv_open_or_create"</em></span>]).
438 <li class="listitem">
439 <span class="bold"><strong>ABI breaking</strong></span>: <a href="https://svn.boost.org/trac/boost/ticket/9221" target="_top">#9221</a>
440 showed that <code class="computeroutput"><span class="identifier">BOOST_INTERPROCESS_MSG_QUEUE_CIRCULAR_INDEX</span></code>
441 option of message queue, was completely broken so an ABI break was
442 necessary to have a working implementation.
444 <li class="listitem">
445 Simplified, refactored and unified (timed_)lock code based on try_lock().
446 There were several bugs when handling timeout expirations.
448 <li class="listitem">
449 Changed the implementation of condition variables' destructors to allow
450 POSIX semantics (the condition variable can be destroyed after all
451 waiting threads have been woken up)..
453 <li class="listitem">
454 Added <code class="computeroutput"><span class="identifier">BOOST_INTERPROCESS_SHARED_DIR_PATH</span></code>
455 option to define the shared directory used to place shared memory objects
456 when implemented as memory mapped files.
458 <li class="listitem">
459 Added support for <code class="computeroutput"><span class="identifier">BOOST_USE_WINDOWS_H</span></code>.
460 When this macro is defined Interprocess does not declare used Windows
461 API function and types, includes all needed windows SDK headers and
462 uses types and functions declared by the Windows SDK.
464 <li class="listitem">
465 Added <code class="computeroutput"><span class="identifier">get_size</span></code> to
466 <code class="computeroutput">::boost:interprocess:windows_shared_memory</code>.
470 <div class="section">
471 <div class="titlepage"><div><div><h4 class="title">
472 <a name="interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_55_00"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_55_00" title="Boost 1.55 Release">Boost
474 </h4></div></div></div>
475 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">
476 Fixed bugs <a href="https://svn.boost.org/trac/boost/ticket/7156" target="_top">#7156</a>
477 (<span class="emphasis"><em>"interprocess buffer streams leak memory on construction"</em></span>]).
478 <a href="https://svn.boost.org/trac/boost/ticket/7164" target="_top">#7164</a>
479 (<span class="emphasis"><em>"Two potential bugs with b::int::vector of b::i::weak_ptr"</em></span>]).
480 <a href="https://svn.boost.org/trac/boost/ticket/7860" target="_top">#7860</a>
481 (<span class="emphasis"><em>"smart_ptr's yield_k and spinlock utilities can improve
482 spinlock-based sychronization primitives"</em></span>]). <a href="https://svn.boost.org/trac/boost/ticket/8277" target="_top">#8277</a> (<span class="emphasis"><em>"docs
483 for named_mutex erroneously refer to interprocess_mutex"</em></span>]).
484 <a href="https://svn.boost.org/trac/boost/ticket/8976" target="_top">#8976</a>
485 (<span class="emphasis"><em>"shared_ptr fails to compile if used with a scoped_allocator"</em></span>]).
486 <a href="https://svn.boost.org/trac/boost/ticket/9008" target="_top">#9008</a>
487 (<span class="emphasis"><em>"conditions variables fast enough only when opening
488 a multiprocess browser"</em></span>]). <a href="https://svn.boost.org/trac/boost/ticket/9065" target="_top">#9065</a>
489 (<span class="emphasis"><em>"atomic_cas32 inline assembly wrong on ppc32"</em></span>]).
490 <a href="https://svn.boost.org/trac/boost/ticket/9073" target="_top">#9073</a>
491 (<span class="emphasis"><em>"Conflict names 'realloc'"</em></span>]).
494 <div class="section">
495 <div class="titlepage"><div><div><h4 class="title">
496 <a name="interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_54_00"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_54_00" title="Boost 1.54 Release">Boost
498 </h4></div></div></div>
499 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
500 <li class="listitem">
501 Added support for platform-specific flags to mapped_region (ticket
504 <li class="listitem">
505 Fixed bugs <a href="https://svn.boost.org/trac/boost/ticket/7484" target="_top">#7484</a>,
506 <a href="https://svn.boost.org/trac/boost/ticket/7598" target="_top">#7598</a>,
507 <a href="https://svn.boost.org/trac/boost/ticket/7682" target="_top">#7682</a>,
508 <a href="https://svn.boost.org/trac/boost/ticket/7923" target="_top">#7923</a>,
509 <a href="https://svn.boost.org/trac/boost/ticket/7924" target="_top">#7924</a>,
510 <a href="https://svn.boost.org/trac/boost/ticket/7928" target="_top">#7928</a>,
511 <a href="https://svn.boost.org/trac/boost/ticket/7936" target="_top">#7936</a>,
512 <a href="https://svn.boost.org/trac/boost/ticket/8521" target="_top">#8521</a>,
513 <a href="https://svn.boost.org/trac/boost/ticket/8595" target="_top">#8595</a>.
515 <li class="listitem">
516 <span class="bold"><strong>ABI breaking</strong></span>: Changed bootstamp function
517 in Windows to use EventLog service start time as system bootup time.
518 Previously used <code class="computeroutput"><span class="identifier">LastBootupTime</span></code>
519 from WMI was unstable with time synchronization and hibernation and
520 unusable in practice. If you really need to obtain pre Boost 1.54 behaviour
521 define <code class="computeroutput"><span class="identifier">BOOST_INTERPROCESS_BOOTSTAMP_IS_LASTBOOTUPTIME</span></code>
522 from command line or <code class="computeroutput"><span class="identifier">detail</span><span class="special">/</span><span class="identifier">workaround</span><span class="special">.</span><span class="identifier">hpp</span></code>.
526 <div class="section">
527 <div class="titlepage"><div><div><h4 class="title">
528 <a name="interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_53_00"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_53_00" title="Boost 1.53 Release">Boost
530 </h4></div></div></div>
531 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
532 <li class="listitem">
533 Fixed GCC -Wshadow warnings.
535 <li class="listitem">
536 Experimental multiple allocation interface improved and changed again.
539 <li class="listitem">
540 Replaced deprecated BOOST_NO_XXXX with newer BOOST_NO_CXX11_XXX macros.
542 <li class="listitem">
543 <span class="bold"><strong>ABI breaking</strong></span>: changed node pool allocators
544 internals for improved efficiency.
546 <li class="listitem">
547 Fixed bug <a href="https://svn.boost.org/trac/boost/ticket/7795" target="_top">#7795</a>.
551 <div class="section">
552 <div class="titlepage"><div><div><h4 class="title">
553 <a name="interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_52_00"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_52_00" title="Boost 1.52 Release">Boost
555 </h4></div></div></div>
556 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
557 <li class="listitem">
558 Added <code class="computeroutput"><span class="identifier">shrink_by</span></code> and
559 <code class="computeroutput"><span class="identifier">advise</span></code> functions in
560 <code class="computeroutput"><span class="identifier">mapped_region</span></code>.
562 <li class="listitem">
563 <span class="bold"><strong>ABI breaking:</strong></span> Reimplemented <code class="computeroutput"><span class="identifier">message_queue</span></code> with a circular buffer
564 index (the old behavior used an ordered array, leading to excessive
565 copies). This should greatly increase performance but breaks ABI. Old
566 behaviour/ABI can be used undefining macro <code class="computeroutput"><span class="identifier">BOOST_INTERPROCESS_MSG_QUEUE_CIRCULAR_INDEX</span></code>
567 in <code class="computeroutput"><span class="identifier">boost</span><span class="special">/</span><span class="identifier">interprocess</span><span class="special">/</span><span class="identifier">detail</span><span class="special">/</span><span class="identifier">workaround</span><span class="special">.</span><span class="identifier">hpp</span></code>
569 <li class="listitem">
570 Improved <code class="computeroutput"><span class="identifier">message_queue</span></code>
571 insertion time avoiding priority search for common cases (both array
572 and circular buffer configurations).
574 <li class="listitem">
575 Implemented <code class="computeroutput"><span class="identifier">interproces_sharable_mutex</span></code>
576 and <code class="computeroutput"><span class="identifier">interproces_condition_any</span></code>.
578 <li class="listitem">
579 Improved <code class="computeroutput"><span class="identifier">offset_ptr</span></code>
582 <li class="listitem">
583 Added integer overflow checks.
587 <div class="section">
588 <div class="titlepage"><div><div><h4 class="title">
589 <a name="interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_51_00"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_51_00" title="Boost 1.51 Release">Boost
591 </h4></div></div></div>
592 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
593 <li class="listitem">
594 Synchronous and asynchronous flushing for <code class="computeroutput"><span class="identifier">mapped_region</span><span class="special">::</span><span class="identifier">flush</span></code>.
596 <li class="listitem">
597 <span class="bold"><strong>Source & ABI breaking</strong></span>: Removed
598 <code class="computeroutput"><span class="identifier">get_offset</span></code> method from
599 <code class="computeroutput"><span class="identifier">mapped_region</span></code> as it
600 has no practical utility and <code class="computeroutput"><span class="identifier">m_offset</span></code>
601 member was not for anything else.
603 <li class="listitem">
604 <span class="bold"><strong>Source & ABI breaking</strong></span>: Removed
605 <code class="computeroutput"><span class="identifier">flush</span></code> from <code class="computeroutput"><span class="identifier">managed_shared_memory</span></code>. as it is unspecified
606 according to POSIX: <a href="http://pubs.opengroup.org/onlinepubs/009695399/functions/msync.html" target="_top"><span class="emphasis"><em>"The
607 effect of msync() on a shared memory object or a typed memory object
608 is unspecified"</em></span> </a>.
610 <li class="listitem">
611 Fixed bug <a href="https://svn.boost.org/trac/boost/ticket/7152" target="_top">#7152</a>,
615 <div class="section">
616 <div class="titlepage"><div><div><h4 class="title">
617 <a name="interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_50_00"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_50_00" title="Boost 1.50 Release">Boost
619 </h4></div></div></div>
620 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
621 <li class="listitem">
622 Fixed bugs <a href="https://svn.boost.org/trac/boost/ticket/3750" target="_top">#3750</a>,
623 <a href="https://svn.boost.org/trac/boost/ticket/6727" target="_top">#6727</a>,
624 <a href="https://svn.boost.org/trac/boost/ticket/6648" target="_top">#6648</a>,
626 <li class="listitem">
627 Shared memory in windows has again kernel persistence: kernel bootstamp
628 and WMI has received some fixes and optimizations. This causes incompatibility
629 with Boost 1.48 and 1.49 but the user can comment <code class="computeroutput"><span class="preprocessor">#define</span>
630 <span class="identifier">BOOST_INTERPROCESS_HAS_KERNEL_BOOTTIME</span></code>
631 in the windows configuration part to get Boost 1.48 & Boost 1.49
636 <div class="section">
637 <div class="titlepage"><div><div><h4 class="title">
638 <a name="interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_49_00"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_49_00" title="Boost 1.49 Release">Boost
640 </h4></div></div></div>
641 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
642 <li class="listitem">
643 Fixed bugs <a href="https://svn.boost.org/trac/boost/ticket/6531" target="_top">#6531</a>,
644 <a href="https://svn.boost.org/trac/boost/ticket/6412" target="_top">#6412</a>,
645 <a href="https://svn.boost.org/trac/boost/ticket/6398" target="_top">#6398</a>,
646 <a href="https://svn.boost.org/trac/boost/ticket/6340" target="_top">#6340</a>,
647 <a href="https://svn.boost.org/trac/boost/ticket/6319" target="_top">#6319</a>,
648 <a href="https://svn.boost.org/trac/boost/ticket/6287" target="_top">#6287</a>,
649 <a href="https://svn.boost.org/trac/boost/ticket/6265" target="_top">#6265</a>,
650 <a href="https://svn.boost.org/trac/boost/ticket/6233" target="_top">#6233</a>,
651 <a href="https://svn.boost.org/trac/boost/ticket/6147" target="_top">#6147</a>,
652 <a href="https://svn.boost.org/trac/boost/ticket/6134" target="_top">#6134</a>,
653 <a href="https://svn.boost.org/trac/boost/ticket/6058" target="_top">#6058</a>,
654 <a href="https://svn.boost.org/trac/boost/ticket/6054" target="_top">#6054</a>,
655 <a href="https://svn.boost.org/trac/boost/ticket/5772" target="_top">#5772</a>,
656 <a href="https://svn.boost.org/trac/boost/ticket/5738" target="_top">#5738</a>,
657 <a href="https://svn.boost.org/trac/boost/ticket/5622" target="_top">#5622</a>,
658 <a href="https://svn.boost.org/trac/boost/ticket/5552" target="_top">#5552</a>,
659 <a href="https://svn.boost.org/trac/boost/ticket/5518" target="_top">#5518</a>,
660 <a href="https://svn.boost.org/trac/boost/ticket/4655" target="_top">#4655</a>,
661 <a href="https://svn.boost.org/trac/boost/ticket/4452" target="_top">#4452</a>,
662 <a href="https://svn.boost.org/trac/boost/ticket/4383" target="_top">#4383</a>,
663 <a href="https://svn.boost.org/trac/boost/ticket/4297" target="_top">#4297</a>.
665 <li class="listitem">
666 Fixed timed functions in mutex implementations to fulfill POSIX requirements:
667 <span class="emphasis"><em>Under no circumstance shall the function fail with a timeout
668 if the mutex can be locked immediately. The validity of the abs_timeout
669 parameter need not be checked if the mutex can be locked immediately.</em></span>
673 <div class="section">
674 <div class="titlepage"><div><div><h4 class="title">
675 <a name="interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_48_00"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_48_00" title="Boost 1.48 Release">Boost
677 </h4></div></div></div>
678 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
679 <li class="listitem">
680 Fixed bugs <a href="https://svn.boost.org/trac/boost/ticket/2796" target="_top">#2796</a>,
681 <a href="https://svn.boost.org/trac/boost/ticket/4031" target="_top">#4031</a>,
682 <a href="https://svn.boost.org/trac/boost/ticket/4251" target="_top">#4251</a>,
683 <a href="https://svn.boost.org/trac/boost/ticket/4452" target="_top">#4452</a>,
684 <a href="https://svn.boost.org/trac/boost/ticket/4895" target="_top">#4895</a>,
685 <a href="https://svn.boost.org/trac/boost/ticket/5077" target="_top">#5077</a>,
686 <a href="https://svn.boost.org/trac/boost/ticket/5120" target="_top">#5120</a>,
687 <a href="https://svn.boost.org/trac/boost/ticket/5123" target="_top">#5123</a>,
688 <a href="https://svn.boost.org/trac/boost/ticket/5230" target="_top">#5230</a>,
689 <a href="https://svn.boost.org/trac/boost/ticket/5197" target="_top">#5197</a>,
690 <a href="https://svn.boost.org/trac/boost/ticket/5287" target="_top">#5287</a>,
691 <a href="https://svn.boost.org/trac/boost/ticket/5294" target="_top">#5294</a>,
692 <a href="https://svn.boost.org/trac/boost/ticket/5306" target="_top">#5306</a>,
693 <a href="https://svn.boost.org/trac/boost/ticket/5308" target="_top">#5308</a>,
694 <a href="https://svn.boost.org/trac/boost/ticket/5392" target="_top">#5392</a>,
695 <a href="https://svn.boost.org/trac/boost/ticket/5409" target="_top">#5409</a>,
697 <li class="listitem">
698 Added support to customize offset_ptr and allow creating custom managed
699 segments that might be shared between 32 and 64 bit processes.
701 <li class="listitem">
702 Shared memory in windows has again filesystem lifetime: kernel bootstamp
703 and WMI use to get a reliable timestamp was causing a lot of trouble.
707 <div class="section">
708 <div class="titlepage"><div><div><h4 class="title">
709 <a name="interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_46_00"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_46_00" title="Boost 1.46 Release">Boost
711 </h4></div></div></div>
712 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">
713 Fixed bugs <a href="https://svn.boost.org/trac/boost/ticket/4557" target="_top">#4557</a>,
714 <a href="https://svn.boost.org/trac/boost/ticket/4979" target="_top">#4979</a>,
715 <a href="https://svn.boost.org/trac/boost/ticket/4907" target="_top">#4907</a>,
716 <a href="https://svn.boost.org/trac/boost/ticket/4895" target="_top">#4895</a>.
719 <div class="section">
720 <div class="titlepage"><div><div><h4 class="title">
721 <a name="interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_45_00"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_45_00" title="Boost 1.45 Release">Boost
723 </h4></div></div></div>
724 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
725 <li class="listitem">
726 Fixed bugs <a href="https://svn.boost.org/trac/boost/ticket/1080" target="_top">#1080</a>,
727 <a href="https://svn.boost.org/trac/boost/ticket/3284" target="_top">#3284</a>,
728 <a href="https://svn.boost.org/trac/boost/ticket/3439" target="_top">#3439</a>,
729 <a href="https://svn.boost.org/trac/boost/ticket/3448" target="_top">#3448</a>,
730 <a href="https://svn.boost.org/trac/boost/ticket/3582" target="_top">#3582</a>,
731 <a href="https://svn.boost.org/trac/boost/ticket/3682" target="_top">#3682</a>,
732 <a href="https://svn.boost.org/trac/boost/ticket/3829" target="_top">#3829</a>,
733 <a href="https://svn.boost.org/trac/boost/ticket/3846" target="_top">#3846</a>,
734 <a href="https://svn.boost.org/trac/boost/ticket/3914" target="_top">#3914</a>,
735 <a href="https://svn.boost.org/trac/boost/ticket/3947" target="_top">#3947</a>,
736 <a href="https://svn.boost.org/trac/boost/ticket/3950" target="_top">#3950</a>,
737 <a href="https://svn.boost.org/trac/boost/ticket/3951" target="_top">#3951</a>,
738 <a href="https://svn.boost.org/trac/boost/ticket/3985" target="_top">#3985</a>,
739 <a href="https://svn.boost.org/trac/boost/ticket/4010" target="_top">#4010</a>,
740 <a href="https://svn.boost.org/trac/boost/ticket/4417" target="_top">#4417</a>,
741 <a href="https://svn.boost.org/trac/boost/ticket/4019" target="_top">#4019</a>,
742 <a href="https://svn.boost.org/trac/boost/ticket/4039" target="_top">#4039</a>,
743 <a href="https://svn.boost.org/trac/boost/ticket/4218" target="_top">#4218</a>,
744 <a href="https://svn.boost.org/trac/boost/ticket/4230" target="_top">#4230</a>,
745 <a href="https://svn.boost.org/trac/boost/ticket/4250" target="_top">#4250</a>,
746 <a href="https://svn.boost.org/trac/boost/ticket/4297" target="_top">#4297</a>,
747 <a href="https://svn.boost.org/trac/boost/ticket/4350" target="_top">#4350</a>,
748 <a href="https://svn.boost.org/trac/boost/ticket/4352" target="_top">#4352</a>,
749 <a href="https://svn.boost.org/trac/boost/ticket/4426" target="_top">#4426</a>,
750 <a href="https://svn.boost.org/trac/boost/ticket/4516" target="_top">#4516</a>,
751 <a href="https://svn.boost.org/trac/boost/ticket/4524" target="_top">#4524</a>,
752 <a href="https://svn.boost.org/trac/boost/ticket/4557" target="_top">#4557</a>,
753 <a href="https://svn.boost.org/trac/boost/ticket/4606" target="_top">#4606</a>,
754 <a href="https://svn.boost.org/trac/boost/ticket/4685" target="_top">#4685</a>,
755 <a href="https://svn.boost.org/trac/boost/ticket/4694" target="_top">#4694</a>.
757 <li class="listitem">
758 Added support for standard rvalue reference move semantics (tested
759 on GCC 4.5 and VC10).
761 <li class="listitem">
762 Permissions can be detailed for interprocess named resources.
764 <li class="listitem">
765 <code class="computeroutput"><span class="identifier">mapped_region</span><span class="special">::</span><span class="identifier">flush</span></code> initiates disk flushing but
766 does not guarantee it's completed when returns, since it is not portable.
768 <li class="listitem">
769 FreeBSD and MacOS now use posix semaphores to implement named semaphores
774 <div class="section">
775 <div class="titlepage"><div><div><h4 class="title">
776 <a name="interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_41_00"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_41_00" title="Boost 1.41 Release">Boost
778 </h4></div></div></div>
779 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
780 <li class="listitem">
781 Support for POSIX shared memory in Mac OS.
783 <li class="listitem">
784 <span class="bold"><strong>ABI breaking</strong></span>: Generic <code class="computeroutput"><span class="identifier">semaphore</span></code> and <code class="computeroutput"><span class="identifier">named_semaphore</span></code>
785 now implemented more efficiently with atomic operations.
787 <li class="listitem">
788 More robust file opening in Windows platforms with active Anti-virus
793 <div class="section">
794 <div class="titlepage"><div><div><h4 class="title">
795 <a name="interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_40_00"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_40_00" title="Boost 1.40 Release">Boost
797 </h4></div></div></div>
798 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
799 <li class="listitem">
800 Windows shared memory is created in Shared Documents folder so that
801 it can be shared between services and processes
803 <li class="listitem">
804 Fixed bugs <a href="https://svn.boost.org/trac/boost/ticket/2967" target="_top">#2967</a>,
805 <a href="https://svn.boost.org/trac/boost/ticket/2973" target="_top">#2973</a>,
806 <a href="https://svn.boost.org/trac/boost/ticket/2992" target="_top">#2992</a>,
807 <a href="https://svn.boost.org/trac/boost/ticket/3138" target="_top">#3138</a>,
808 <a href="https://svn.boost.org/trac/boost/ticket/3166" target="_top">#3166</a>,
809 <a href="https://svn.boost.org/trac/boost/ticket/3205" target="_top">#3205</a>.
813 <div class="section">
814 <div class="titlepage"><div><div><h4 class="title">
815 <a name="interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_39_00"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_39_00" title="Boost 1.39 Release">Boost
817 </h4></div></div></div>
818 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
819 <li class="listitem">
820 Added experimental <code class="computeroutput"><span class="identifier">stable_vector</span></code>
823 <li class="listitem">
824 <code class="computeroutput"><span class="identifier">shared_memory_object</span><span class="special">::</span><span class="identifier">remove</span></code>
825 has now POSIX <code class="computeroutput"><span class="identifier">unlink</span></code>
826 semantics and <code class="computeroutput"><span class="identifier">file_mapping</span><span class="special">::</span><span class="identifier">remove</span></code>
827 was added to obtain POSIX <code class="computeroutput"><span class="identifier">unlink</span></code>
828 semantics with mapped files.
830 <li class="listitem">
831 Shared memory in windows has now kernel lifetime instead of filesystem
832 lifetime: shared memory will disappear when the system reboots.
834 <li class="listitem">
835 Updated move semantics.
837 <li class="listitem">
838 Fixed bugs <a href="https://svn.boost.org/trac/boost/ticket/2722" target="_top">#2722</a>,
839 <a href="https://svn.boost.org/trac/boost/ticket/2729" target="_top">#2729</a>,
840 <a href="https://svn.boost.org/trac/boost/ticket/2766" target="_top">#2766</a>,
841 <a href="https://svn.boost.org/trac/boost/ticket/1390" target="_top">#1390</a>,
842 <a href="https://svn.boost.org/trac/boost/ticket/2589" target="_top">#2589</a>,
846 <div class="section">
847 <div class="titlepage"><div><div><h4 class="title">
848 <a name="interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_38_00"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_38_00" title="Boost 1.38 Release">Boost
850 </h4></div></div></div>
851 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
852 <li class="listitem">
853 Updated documentation to show rvalue-references funcions instead of
856 <li class="listitem">
857 More non-copyable classes are now movable.
859 <li class="listitem">
860 Move-constructor and assignments now leave moved object in default-constructed
861 state instead of just swapping contents.
863 <li class="listitem">
864 Several bugfixes ( <a href="https://svn.boost.org/trac/boost/ticket/2391" target="_top">#2391</a>,
865 <a href="https://svn.boost.org/trac/boost/ticket/2431" target="_top">#2431</a>,
866 <a href="https://svn.boost.org/trac/boost/ticket/1390" target="_top">#1390</a>,
867 <a href="https://svn.boost.org/trac/boost/ticket/2570" target="_top">#2570</a>,
868 <a href="https://svn.boost.org/trac/boost/ticket/2528" target="_top">#2528</a>.
872 <div class="section">
873 <div class="titlepage"><div><div><h4 class="title">
874 <a name="interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_37_00"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_37_00" title="Boost 1.37 Release">Boost
876 </h4></div></div></div>
877 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
878 <li class="listitem">
879 Containers can be used now in recursive types.
881 <li class="listitem">
882 Added <code class="computeroutput"><span class="identifier">BOOST_INTERPROCESS_FORCE_GENERIC_EMULATION</span></code>
883 macro option to force the use of generic emulation code for process-shared
884 synchronization primitives instead of native POSIX functions.
886 <li class="listitem">
887 Added placement insertion members to containers
889 <li class="listitem">
890 <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">posix_time</span><span class="special">::</span><span class="identifier">pos_inf</span></code> value is now handled portably
893 <li class="listitem">
894 Update some function parameters from <code class="computeroutput"><span class="identifier">iterator</span></code>
895 to <code class="computeroutput"><span class="identifier">const_iterator</span></code> in
896 containers to keep up with the draft of the next standard.
898 <li class="listitem">
903 <div class="section">
904 <div class="titlepage"><div><div><h4 class="title">
905 <a name="interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_36_00"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_36_00" title="Boost 1.36 Release">Boost
907 </h4></div></div></div>
908 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
909 <li class="listitem">
910 Added anonymous shared memory for UNIX systems.
912 <li class="listitem">
913 Fixed erroneous <code class="computeroutput"><span class="keyword">void</span></code> return
914 types from <code class="computeroutput"><span class="identifier">flat_map</span><span class="special">::</span><span class="identifier">erase</span><span class="special">()</span></code> functions.
916 <li class="listitem">
917 Fixed missing move semantics on managed memory classes.
919 <li class="listitem">
920 Added copy_on_write and open_read_only options for shared memory and
921 mapped file managed classes.
923 <li class="listitem">
924 <span class="bold"><strong>ABI breaking</strong></span>: Added to <code class="computeroutput"><span class="identifier">mapped_region</span></code> the mode used to create
927 <li class="listitem">
928 Corrected instantiation errors in void allocators.
930 <li class="listitem">
931 <code class="computeroutput"><span class="identifier">shared_ptr</span></code> is movable
932 and supports aliasing.
936 <div class="section">
937 <div class="titlepage"><div><div><h4 class="title">
938 <a name="interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_35_00"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.release_notes.release_notes_boost_1_35_00" title="Boost 1.35 Release">Boost
940 </h4></div></div></div>
941 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
942 <li class="listitem">
943 Added auxiliary utilities to ease the definition and construction of
944 <code class="computeroutput"><a class="link" href="../boost/interprocess/shared_ptr.html" title="Class template shared_ptr">shared_ptr</a></code>,
945 <code class="computeroutput"><a class="link" href="../boost/interprocess/weak_ptr.html" title="Class template weak_ptr">weak_ptr</a></code>
946 and <code class="computeroutput"><span class="identifier">unique_ptr</span></code>. Added
947 explanations and examples of these smart pointers in the documentation.
949 <li class="listitem">
951 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: circle; ">
952 <li class="listitem">
953 1) Now works with raw pointers as much as possible when using
954 allocators defining <code class="computeroutput"><span class="identifier">pointer</span></code>
955 as an smart pointer. This increases performance and improves
958 <li class="listitem">
959 2) A bit of metaprogramming to avoid using move_iterator when
960 the type has trivial copy constructor or assignment and improve
963 <li class="listitem">
964 3) Changed custom algorithms with standard ones to take advantage
965 of optimized standard algorithms.
967 <li class="listitem">
968 4) Removed unused code.
972 <li class="listitem">
973 <span class="bold"><strong>ABI breaking</strong></span>: Containers don't derive
974 from allocators, to avoid problems with allocators that might define
975 virtual functions with the same names as container member functions.
976 That would convert container functions in virtual functions and might
977 disallow some of them if the returned type does not lead to a covariant
978 return. Allocators are now stored as base classes of internal structs.
980 <li class="listitem">
981 Implemented <code class="computeroutput"><a class="link" href="../boost/interprocess/named_mutex.html" title="Class named_mutex">named_mutex</a></code>
982 and <code class="computeroutput"><a class="link" href="../boost/interprocess/named_semaphore.html" title="Class named_semaphore">named_semaphore</a></code>
983 with POSIX named semaphores in systems supporting that option. <code class="computeroutput"><a class="link" href="../boost/interprocess/named_condition.html" title="Class named_condition">named_condition</a></code>
984 has been accordingly changed to support interoperability with <code class="computeroutput"><a class="link" href="../boost/interprocess/named_mutex.html" title="Class named_mutex">named_mutex</a></code>.
986 <li class="listitem">
987 Reduced template bloat for node and adaptive allocators extracting
988 node implementation to a class that only depends on the memory algorithm,
989 instead of the segment manager + node size + node number...
991 <li class="listitem">
992 Fixed bug in <code class="computeroutput"><span class="identifier">mapped_region</span></code>
993 in UNIX when mapping address was provided but the region was mapped
996 <li class="listitem">
997 Added <code class="computeroutput"><span class="identifier">aligned_allocate</span></code>
998 and <code class="computeroutput"><span class="identifier">allocate_many</span></code> functions
999 to managed memory segments.
1001 <li class="listitem">
1002 Improved documentation about managed memory segments.
1004 <li class="listitem">
1005 <span class="bold"><strong>Boost.Interprocess</strong></span> containers are
1006 now documented in the Reference section.
1008 <li class="listitem">
1009 Correction of typos and documentation errors.
1011 <li class="listitem">
1012 Added <code class="computeroutput"><span class="identifier">get_instance_name</span></code>,
1013 <code class="computeroutput"><span class="identifier">get_instance_length</span></code>
1014 and <code class="computeroutput"><span class="identifier">get_instance_type</span></code>
1015 functions to managed memory segments.
1017 <li class="listitem">
1018 Corrected suboptimal buffer expansion bug in <code class="computeroutput"><span class="identifier">rbtree_best_fit</span></code>.
1020 <li class="listitem">
1021 Added iteration of named and unique objects in a segment manager.
1023 <li class="listitem">
1024 Fixed leak in <code class="computeroutput">vector</code>.
1026 <li class="listitem">
1027 Added support for Solaris.
1029 <li class="listitem">
1030 Optimized <code class="computeroutput"><a class="link" href="../boost/interprocess/segment_manager.html" title="Class template segment_manager">segment_manager</a></code>
1031 to avoid code bloat associated with templated instantiations.
1033 <li class="listitem">
1034 Fixed bug for UNIX: No slash ('/') was being added as the first character
1035 for shared memory names, leading to errors in some UNIX systems.
1037 <li class="listitem">
1038 Fixed bug in VC-8.0: Broken function inlining in core offset_ptr functions.
1040 <li class="listitem">
1041 Code examples changed to use new BoostBook code import features.
1043 <li class="listitem">
1044 Added aligned memory allocation function to memory algorithms.
1046 <li class="listitem">
1047 Fixed bug in <code class="computeroutput"><span class="identifier">deque</span><span class="special">::</span><span class="identifier">clear</span><span class="special">()</span></code> and <code class="computeroutput"><span class="identifier">deque</span><span class="special">::</span><span class="identifier">erase</span><span class="special">()</span></code>, they were declared private.
1049 <li class="listitem">
1050 Fixed bug in <code class="computeroutput"><span class="identifier">deque</span><span class="special">::</span><span class="identifier">erase</span><span class="special">()</span></code>. Thanks to Steve LoBasso.
1052 <li class="listitem">
1053 Fixed bug in <code class="computeroutput"><span class="identifier">atomic_dec32</span><span class="special">()</span></code>. Thanks to Glenn Schrader.
1055 <li class="listitem">
1056 Improved (multi)map/(multi)set constructors taking iterators. Now those
1057 have linear time if the iterator range is already sorted.
1059 <li class="listitem">
1060 <span class="bold"><strong>ABI breaking</strong></span>: (multi)map/(multi)set
1061 now reduce their node size. The color bit is embedded in the parent
1062 pointer. Now, the size of a node is the size of 3 pointers in most
1063 systems. This optimization is activated for raw and <code class="computeroutput"><span class="identifier">offset_ptr</span></code>
1066 <li class="listitem">
1067 (multi)map/(multi)set now reuse memory from old nodes in the assignment
1070 <li class="listitem">
1071 <span class="bold"><strong>ABI breaking</strong></span>: Implemented node-containers
1072 based on intrusive containers. This saves code size, since many instantiations
1073 share the same algorithms.
1075 <li class="listitem">
1076 Corrected code to be compilable with Visual C++ 8.0.
1078 <li class="listitem">
1079 Added function to zero free memory in memory algorithms and the segment
1080 manager. This function is useful for security reasons and to improve
1081 compression ratios for files created with <code class="computeroutput"><span class="identifier">managed_mapped_file</span></code>.
1083 <li class="listitem">
1084 Added support for intrusive index types in managed memory segments.
1085 Intrusive indexes save extra memory allocations to allocate the index
1086 since with just one allocation, we allocate room for the value, the
1087 name and the hook to insert the object in the index.
1089 <li class="listitem">
1090 Created new index type: <span class="bold"><strong>iset_index</strong></span>.
1091 It's an index based on an intrusive set (rb-tree).
1093 <li class="listitem">
1094 Created new index type: <span class="bold"><strong>iunordered_set_index</strong></span>.
1095 It's an index based on a pseudo-intrusive unordered set (hash table).
1097 <li class="listitem">
1098 <span class="bold"><strong>ABI breaking</strong></span>: The intrusive index
1099 <span class="bold"><strong>iset_index</strong></span> is now the default index
1102 <li class="listitem">
1103 Optimized vector to take advantage of <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">has_trivial_destructor</span></code>.
1104 This optimization avoids calling destructors of elements that have
1105 a trivial destructor.
1107 <li class="listitem">
1108 Optimized vector to take advantage of <code class="computeroutput"><span class="identifier">has_trivial_destructor_after_move</span></code>
1109 trait. This optimization avoids calling destructors of elements that
1110 have a trivial destructor if the element has been moved (which is the
1111 case of many movable types). This trick was provided by Howard Hinnant.
1113 <li class="listitem">
1114 Added security check to avoid integer overflow bug in allocators and
1115 named construction functions.
1117 <li class="listitem">
1118 Added alignment checks to forward and backwards expansion functions.
1120 <li class="listitem">
1121 Fixed bug in atomic functions for PPC.
1123 <li class="listitem">
1124 Fixed race-condition error when creating and opening a managed segment.
1126 <li class="listitem">
1127 Added adaptive pools.
1129 <li class="listitem">
1130 <span class="bold"><strong>Source breaking</strong></span>: Changed node allocators'
1131 template parameter order to make them easier to use.
1133 <li class="listitem">
1134 Added support for native windows shared memory.
1136 <li class="listitem">
1139 <li class="listitem">
1140 Corrected the presence of private functions in the reference section.
1142 <li class="listitem">
1143 Added function (<code class="computeroutput"><span class="identifier">deallocate_free_chunks</span><span class="special">()</span></code>) to manually deallocate completely
1144 free chunks from node allocators.
1146 <li class="listitem">
1147 Implemented N1780 proposal to LWG issue 233: <span class="emphasis"><em>Insertion hints
1148 in associative containers</em></span> in interprocess <code class="computeroutput">multiset</code>
1149 and <code class="computeroutput">multimap</code>
1152 <li class="listitem">
1153 <span class="bold"><strong>Source breaking</strong></span>: A shared memory object
1154 is now used including <code class="computeroutput"><span class="identifier">shared_memory_object</span><span class="special">.</span><span class="identifier">hpp</span></code>
1155 header instead of <code class="computeroutput"><span class="identifier">shared</span>
1156 <span class="identifier">memory</span><span class="special">.</span><span class="identifier">hpp</span></code>.
1158 <li class="listitem">
1159 <span class="bold"><strong>ABI breaking</strong></span>: Changed global mutex
1160 when initializing managed shared memory and memory mapped files. This
1161 change tries to minimize deadlocks.
1163 <li class="listitem">
1164 <span class="bold"><strong>Source breaking</strong></span>: Changed shared memory,
1165 memory mapped files and mapped region's open mode to a single <code class="computeroutput"><span class="identifier">mode_t</span></code> type.
1167 <li class="listitem">
1168 Added extra WIN32_LEAN_AND_MEAN before including DateTime headers to
1169 avoid socket redefinition errors when using Interprocess and Asio in
1172 <li class="listitem">
1173 <span class="bold"><strong>ABI breaking</strong></span>: <code class="computeroutput"><span class="identifier">mapped_region</span></code>
1174 constructor no longer requires classes derived from memory_mappable,
1175 but classes must fulfill the MemoryMappable concept.
1177 <li class="listitem">
1178 Added in-place reallocation capabilities to basic_string.
1180 <li class="listitem">
1181 <span class="bold"><strong>ABI breaking</strong></span>: Reimplemented and optimized
1182 small string optimization. The narrow string class has zero byte overhead
1183 with an internal 11 byte buffer in 32 systems!
1185 <li class="listitem">
1186 Added move semantics to containers. Improves performance when using
1187 containers of containers.
1189 <li class="listitem">
1190 <span class="bold"><strong>ABI breaking</strong></span>: End nodes of node containers
1191 (list, slist, map/set) are now embedded in the containers instead of
1192 allocated using the allocator. This allows no-throw move-constructors
1193 and improves performance.
1195 <li class="listitem">
1196 <span class="bold"><strong>ABI breaking</strong></span>: <span class="bold"><strong>slist</strong></span>
1197 and <span class="bold"><strong>list</strong></span> containers now have constant-time
1198 <span class="emphasis"><em>size()</em></span> function. The size of the container is
1204 <div class="section">
1205 <div class="titlepage"><div><div><h3 class="title">
1206 <a name="interprocess.acknowledgements_notes.books_and_links"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.books_and_links" title="Books and interesting links">Books
1207 and interesting links</a>
1208 </h3></div></div></div>
1209 <div class="toc"><dl class="toc">
1210 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.books_and_links.references_books">Books</a></span></dt>
1211 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.books_and_links.references_links">Links</a></span></dt>
1214 Some useful references about the C++ programming language, C++ internals,
1215 shared memory, allocators and containers used to design <span class="bold"><strong>Boost.Interprocess</strong></span>.
1217 <div class="section">
1218 <div class="titlepage"><div><div><h4 class="title">
1219 <a name="interprocess.acknowledgements_notes.books_and_links.references_books"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.books_and_links.references_books" title="Books">Books</a>
1220 </h4></div></div></div>
1221 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
1222 <li class="listitem">
1223 Great book about multithreading, and POSIX: <span class="bold"><strong><span class="emphasis"><em>"Programming
1224 with Posix Threads"</em></span></strong></span>, <span class="bold"><strong>David
1225 R. Butenhof</strong></span>
1227 <li class="listitem">
1228 The UNIX inter-process bible: <span class="bold"><strong><span class="emphasis"><em>"UNIX
1229 Network Programming, Volume 2: Interprocess Communications"</em></span></strong></span>,
1230 <span class="bold"><strong>W. Richard Stevens</strong></span>
1232 <li class="listitem">
1233 Current STL allocator issues: <span class="bold"><strong><span class="emphasis"><em>"Effective
1234 STL"</em></span></strong></span>, <span class="bold"><strong>Scott Meyers</strong></span>
1236 <li class="listitem">
1237 My C++ bible: <span class="bold"><strong><span class="emphasis"><em>"Thinking in C++,
1238 Volume 1 & 2"</em></span></strong></span>, <span class="bold"><strong>Bruce
1239 Eckel and Chuck Allison</strong></span>
1241 <li class="listitem">
1242 The book every C++ programmer should read: <span class="bold"><strong><span class="emphasis"><em>"Inside
1243 the C++ Object Model"</em></span></strong></span>, <span class="bold"><strong>Stanley
1244 B. Lippman</strong></span>
1246 <li class="listitem">
1247 A must-read: <span class="bold"><strong><span class="emphasis"><em>"ISO/IEC TR 18015:
1248 Technical Report on C++ Performance"</em></span></strong></span>, <span class="bold"><strong>ISO WG21-SC22 members.</strong></span>
1252 <div class="section">
1253 <div class="titlepage"><div><div><h4 class="title">
1254 <a name="interprocess.acknowledgements_notes.books_and_links.references_links"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.books_and_links.references_links" title="Links">Links</a>
1255 </h4></div></div></div>
1256 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
1257 <li class="listitem">
1258 A framework to put the STL in shared memory: <a href="http://allocator.sourceforge.net/" target="_top"><span class="emphasis"><em>"A
1259 C++ Standard Allocator for the Standard Template Library"</em></span>
1262 <li class="listitem">
1263 Instantiating C++ objects in shared memory: <a href="http://www.cs.ubc.ca/local/reading/proceedings/cascon94/htm/english/abs/hon.htm" target="_top"><span class="emphasis"><em>"Using
1264 objects in shared memory for C++ application"</em></span> </a>.
1266 <li class="listitem">
1267 A shared memory allocator and relative pointer: <a href="http://home.earthlink.net/~joshwalker1/writing/SharedMemory.html" target="_top"><span class="emphasis"><em>"Taming
1268 Shared Memory"</em></span> </a>.
1273 <div class="section">
1274 <div class="titlepage"><div><div><h3 class="title">
1275 <a name="interprocess.acknowledgements_notes.future_improvements"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.future_improvements" title="Future improvements...">Future
1277 </h3></div></div></div>
1278 <div class="toc"><dl class="toc">
1279 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.future_improvements.win32_sync">Win32
1280 synchronization is too basic</a></span></dt>
1281 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.future_improvements.future_objectnames">Use
1282 of wide character names on Boost.Interprocess basic resources</a></span></dt>
1283 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.future_improvements.future_security">Security
1284 attributes</a></span></dt>
1285 <dt><span class="section"><a href="acknowledgements_notes.html#interprocess.acknowledgements_notes.future_improvements.future_ipc">Future
1286 inter-process communications</a></span></dt>
1289 There are some Interprocess features that I would like to implement and some
1290 <span class="bold"><strong>Boost.Interprocess</strong></span> code that can be much
1291 better. Let's see some ideas:
1293 <div class="section">
1294 <div class="titlepage"><div><div><h4 class="title">
1295 <a name="interprocess.acknowledgements_notes.future_improvements.win32_sync"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.future_improvements.win32_sync" title="Win32 synchronization is too basic">Win32
1296 synchronization is too basic</a>
1297 </h4></div></div></div>
1299 Win32 version of shared mutexes and shared conditions are based on "spin
1300 and wait" atomic instructions. This leads to poor performance and
1301 does not manage any issues like priority inversions. We would need very
1302 serious help from threading experts on this. And I'm not sure that this
1303 can be achieved in user-level software. Posix based implementations use
1304 PTHREAD_PROCESS_SHARED attribute to place mutexes in shared memory, so
1305 there are no such problems. I'm not aware of any implementation that simulates
1306 PTHREAD_PROCESS_SHARED attribute for Win32. We should be able to construct
1307 these primitives in memory mapped files, so that we can get filesystem
1308 persistence just like with POSIX primitives.
1311 <div class="section">
1312 <div class="titlepage"><div><div><h4 class="title">
1313 <a name="interprocess.acknowledgements_notes.future_improvements.future_objectnames"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.future_improvements.future_objectnames" title="Use of wide character names on Boost.Interprocess basic resources">Use
1314 of wide character names on Boost.Interprocess basic resources</a>
1315 </h4></div></div></div>
1317 Currently Interprocess only allows <span class="bold"><strong>char</strong></span>
1318 based names for basic named objects. However, several operating systems
1319 use <span class="bold"><strong>wchar_t</strong></span> names for resources (mapped
1320 files, for example). In the future Interprocess should try to present a
1321 portable narrow/wide char interface. To do this, it would be useful to
1322 have a boost wstring <-> string conversion utilities to translate
1323 resource names (escaping needed characters that can conflict with OS names)
1324 in a portable way. It would be interesting also the use of <span class="bold"><strong>boost::filesystem</strong></span>
1325 paths to avoid operating system specific issues.
1328 <div class="section">
1329 <div class="titlepage"><div><div><h4 class="title">
1330 <a name="interprocess.acknowledgements_notes.future_improvements.future_security"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.future_improvements.future_security" title="Security attributes">Security
1332 </h4></div></div></div>
1334 <span class="bold"><strong>Boost.Interprocess</strong></span> does not define security
1335 attributes for shared memory and synchronization objects. Standard C++
1336 also ignores security attributes with files so adding security attributes
1337 would require some serious work.
1340 <div class="section">
1341 <div class="titlepage"><div><div><h4 class="title">
1342 <a name="interprocess.acknowledgements_notes.future_improvements.future_ipc"></a><a class="link" href="acknowledgements_notes.html#interprocess.acknowledgements_notes.future_improvements.future_ipc" title="Future inter-process communications">Future
1343 inter-process communications</a>
1344 </h4></div></div></div>
1346 <span class="bold"><strong>Boost.Interprocess</strong></span> offers a process-shared
1347 message queue based on <span class="bold"><strong>Boost.Interprocess</strong></span>
1348 primitives like mutexes and conditions. I would want to develop more mechanisms,
1349 like stream-oriented named fifo so that we can use it with a iostream-interface
1350 wrapper (we can imitate Unix pipes).
1353 C++ needs more complex mechanisms and it would be nice to have a stream
1354 and datagram oriented PF_UNIX-like mechanism in C++. And for very fast
1355 inter-process remote calls Solaris doors is an interesting alternative
1356 to implement for C++. But the work to implement PF_UNIX-like sockets and
1357 doors would be huge (and it might be difficult in a user-level library).
1358 Any network expert volunteer?
1363 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
1364 <td align="left"></td>
1365 <td align="right"><div class="copyright-footer">Copyright © 2005-2012 Ion Gaztanaga<p>
1366 Distributed under the Boost Software License, Version 1.0. (See accompanying
1367 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
1372 <div class="spirit-nav">
1373 <a accesskey="p" href="customizing_interprocess.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../interprocess.html"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="indexes_reference.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>