Commit Graph

330 Commits

Author SHA1 Message Date
Ion Gaztañaga
de72bbf2d8 Fixed vector_test and cleaned up intermodule singleton code. 2014-07-10 21:38:52 +02:00
Ion Gaztañaga
fe40c36e6c Removed unused variable and strict aliasing warnings in GCC. 2014-06-16 21:07:10 +02:00
Ion Gaztañaga
1eb0000ac9 Fixed unused variable and redeclaration warnings. 2014-06-06 14:06:53 +02:00
Ion Gaztañaga
360a39d078 Removed unneeded dependency from Boost.Math 2014-06-06 14:06:11 +02:00
Adam Wulkiewicz
0be5672e70 Fix MinGW warnings caused by the unknown MSVC pragmas 2014-06-06 00:51:51 +02:00
Ion Gaztañaga
aa09229e8a Fixes #10011 segment_manager::find( unique_instance_t* ) fails to compile 2014-06-02 14:40:19 +02:00
Ion Gaztañaga
81a5fcf56d Removed trailing whitespaces. 2014-05-28 15:48:09 +02:00
Ion Gaztañaga
de405e89a3 * If BOOST_USE_WINDOWS_H is defined, <windows.h> and other windows SDK files are included,
otherwise the library declares needed functions and structures to reduce the impact of including
those heavy headers.

*  Added `get_size` to windows_shared_memory.
2014-05-28 15:30:04 +02:00
Ion Gaztañaga
02a7e7ecf2 More interprocess_exception fixes & #ifdef rephrasings 2014-05-25 20:50:39 +02:00
Adam Wulkiewicz
d0a647b129 Rephrase the #ifdef in errors.hpp 2014-05-25 17:21:50 +02:00
Adam Wulkiewicz
f1e1af0a47 Fix interprocess_exception throw in file_wrapper::priv_open_or_create.
On Windows the exception object is created using the result of GetLastError().
When compiled using MinGW the throw instruction itself is using some WinApi call which overwrites the last error.
Therefore the error code must be retrieved before the exception is thrown.
2014-05-25 17:13:35 +02:00
Richard Dale
ec7b1726a6 Provide support for the Cray C++ compiler. The Cray compiler defines __GNUC__
and generally supports gnu extensions to C and C++.  It does not, however, support
inline assembly.  The changes here are to avoid inline assembly when _CRAYC is asserted
in the preprocessor.
2014-05-20 13:14:53 -05:00
Ion Gaztañaga
fb1b0e547c Fixes #9767 (bootstamp generation causes error in case of corrupt Windows Event Log) and #9911 (get_tmp_base_dir(...) failure) 2014-04-28 01:21:03 +02:00
Ion Gaztañaga
9191d2cca6 Fixed #9946: ret_ptr uninitialized in init_atomic_func, fini_atomic_func 2014-04-26 23:47:09 +02:00
Ion Gaztañaga
65b5d34a04 Fixes #9835, typos and MSVC version offset_ptr branchless optimization fix. 2014-04-08 06:50:52 +02:00
Ion Gaztañaga
cdda0f1854 Workaround for MSVC2013 x64 2014-02-15 00:15:39 +01:00
Ion Gaztañaga
0526a090be Fixed previous git reset error. 2014-02-14 23:20:54 +01:00
Ion Gaztañaga
a0ea486cf6 Merge branch 'develop' 2014-02-14 20:03:03 +01:00
Ion Gaztañaga
f5f5c8c903 - Removed old fully_mapped_file.hpp header provoked by git transition
- Typo and extra space fix.
2013-12-23 10:21:59 +01:00
Ion Gaztañaga
07bb8d0940 Fixed error when adding os_thread_func_ptr_deleter, UNIX OSs also use it.
[SVN r86777]
2013-11-20 17:10:43 +00:00
Ion Gaztañaga
ecfec55cc9 Fixes #9408 ("Android does not support XSI_SHARED_MEMORY_OBJECTS")
[SVN r86765]
2013-11-19 11:53:51 +00:00
Ion Gaztañaga
7550571040 Removed auto_ptr to avoid deprecation warnings in newer compilers.
[SVN r86749]
2013-11-18 09:33:36 +00:00
Ion Gaztañaga
0773ececab Fixes unfinished code in timed_wait for systems without POSIX timeout support, such as Darwin
[SVN r86529]
2013-10-31 08:54:12 +00:00
Ion Gaztañaga
960f8f35fd Fixes #9284 ("WaitForSingleObject(mutex) must handle WAIT_ABANDONED")
[SVN r86512]
2013-10-29 08:05:27 +00:00
Ion Gaztañaga
467ba673d3 Simplified, refactored and unified (timed_)lock code based on try_lock(). There were several bugs in when handling timeout expirations.
[SVN r86511]
2013-10-29 07:39:21 +00:00
Ion Gaztañaga
94cfd64cfe Fixes #9285
[SVN r86476]
2013-10-27 12:28:55 +00:00
Ion Gaztañaga
2fe567ffad Fixes #9288
[SVN r86475]
2013-10-27 12:16:43 +00:00
Ion Gaztañaga
ffcddef660 Fixes #9226 (On some computers, Common Appdata is empty in registry, so boost interprocess cannot work)
[SVN r86318]
2013-10-15 09:07:36 +00:00
Ion Gaztañaga
b91dd9efbc Removed incorrect assert(0) introduced when resolving #9221
[SVN r86317]
2013-10-15 08:54:28 +00:00
Ion Gaztañaga
a4ce866747 Fixes #9221 ("message_queue deadlock on linux")
[SVN r86316]
2013-10-15 08:02:09 +00:00
Ion Gaztañaga
5fb241ea57 Fixes #9248 ("os_file_functions.hpp: delete_subdirectories_recursive Win32 HANDLE leak")
[SVN r86304]
2013-10-14 19:50:13 +00:00
Ion Gaztañaga
5565248b45 Don't use EAGAIN as it's not used and requires missing cerrno
[SVN r86089]
2013-09-30 21:01:45 +00:00
Ion Gaztañaga
d472972da5 Don't use EAGAIN as it's not used and requires missing cerrno
[SVN r86088]
2013-09-30 21:01:27 +00:00
Ion Gaztañaga
94b33a6b0b Notify all waiting threads in destructor to allow POSIX semantics on condition variables destruction.
[SVN r86001]
2013-09-29 11:46:58 +00:00
Ion Gaztañaga
cfbcaa43c3 Changed #include <boost/type_traits.hpp> with <boost/type_traits/alignment_of.hpp> + <boost/type_traits/make_unsigned.hpp> to avoid unnecessary header includes.
[SVN r86000]
2013-09-29 11:44:19 +00:00
Stephen Kelly
d3794a5d38 Remove obsolete MSVC check from pragma guard
git grep -h -B1 "^#\s*pragma once" | grep -v pragma | sort | uniq

is now clean.

[SVN r85952]
2013-09-26 13:02:51 +00:00
Stephen Kelly
40e5c3adab Interprocess: Remove obsolete MSVC version check
[SVN r85935]
2013-09-26 09:41:56 +00:00
Ion Gaztañaga
aa6dd59f3b Last merge for 1.55 (Interprocess)
[SVN r85705]
2013-09-16 17:01:45 +00:00
Ion Gaztañaga
868981c178 Remove boost/thread dependency in tests.
[SVN r85688]
2013-09-15 19:50:54 +00:00
Ion Gaztañaga
2e9c9f0eb8 Detect Mac Os version and allow process-shared synchronization primitives when minimum target is Mac Os Lion or newer (refs #6108).
[SVN r85685]
2013-09-15 19:38:08 +00:00
Ion Gaztañaga
762aaea036 Merging latest spin_wait improvements + unused typedef removal.
[SVN r85653]
2013-09-11 21:02:47 +00:00
Ion Gaztañaga
fcb3901d94 Removed unused typedefs
[SVN r85652]
2013-09-11 20:59:09 +00:00
Ion Gaztañaga
e84d3fd791 Improved spin_wait storing a long system tick variable instead of OS_highres_count_t, which can be quite big on POSIX systems. Removed __int64 constructor and replaced with static_cast to fix MinGW errors.
[SVN r85651]
2013-09-11 20:57:21 +00:00
Ion Gaztañaga
e559ac3275 Merged Interprocess to the release branch
[SVN r85615]
2013-09-08 20:07:03 +00:00
Ion Gaztañaga
0110909521 Fixes #9073
[SVN r85589]
2013-09-07 06:56:47 +00:00
Ion Gaztañaga
0037823e04 Fixes #8976
[SVN r85587]
2013-09-06 21:24:37 +00:00
Ion Gaztañaga
e585dc3b64 Fixes #7156
[SVN r85555]
2013-09-03 22:03:10 +00:00
Ion Gaztañaga
86a09a1990 Fixed linker error as the class static variable was used in an explicit instantiation
[SVN r85525]
2013-08-30 09:04:40 +00:00
Ion Gaztañaga
fd06b8e046 Fixes #9065
[SVN r85522]
2013-08-30 07:56:41 +00:00
Ion Gaztañaga
da01f2f69c Added a new spin-wait method. Spins + yields for a system tick and then sleeps a tick.
[SVN r85505]
2013-08-28 21:33:26 +00:00