Andrey Semashev
b2ca4e9673
Restored support for basic_string_ref as it is kept present in Boost.Utility for a deprecation period.
2016-02-25 21:24:19 +03:00
Andrey Semashev
353278865b
Updated changelog.
2016-02-17 23:35:44 +03:00
Andrey Semashev
854e15269a
Merge pull request #26 from gsauthof/solaris10xopen600
...
Request POSIX 2004 definitions on Solaris 10
2016-02-09 11:56:22 +03:00
Georg Sauthoff
b2bc15cf81
Request POSIX 2004 definitions on Solaris 10
...
Otherwise, the Boost Log build fails.
Tested on Solaris 10/SPARC (with gcc 4.9).
2016-02-08 20:58:36 +01:00
Erich Keane
cd09f68d24
Fixed previous build issue with keyword specification
2015-12-29 11:27:43 -08:00
Erich Keane
5b8575cfab
Added max_files to parser_utils and init_from_settings
2015-12-29 11:20:57 -08:00
Erich Keane
2b9cf67a4a
Add max_files parameter to the examples that use make_file_collector
2015-12-29 11:16:51 -08:00
Erich Keane
5234253333
Added max_files option to text_file_backend's file_collector
...
As requested here: https://svn.boost.org/trac/boost/ticket/8746
this commit introduces the boost::log::keywords::max_files keyword
and implements this functionality in the file collector.
Additionally, the non-keyword make_collector call has max_files added as
a uintmax_t parameter, which has a default value as to not break
existing code.
The purpose of this is to limit the total number of files in the
collected logs. If not specified, the limit will be
std::numeric_limits<uintmax_t>::max(), which is likely greater than the
capacity of the filesystem.
2015-12-29 11:07:41 -08:00
Andrey Semashev
30fcf0ef2d
Renamed all uses of basic_string_ref to basic_string_view to follow Boost.Utility.
2015-12-23 01:58:20 +03:00
Andrey Semashev
1f32d51dce
Added branch prediction hints.
2015-12-20 23:12:35 +03:00
Andrey Semashev
953f2f2132
Updated changelog.
2015-12-20 21:57:37 +03:00
Andrey Semashev
a31ec74e51
Make sure that Windows API version is consistent for all sources.
...
Include winapi/config.hpp as soon as possible; avoid including even
Boost.Config before it so that it doesn't set Windows API version
accidentally by including some third party header. In all source files,
include detail/config.hpp or detail/setup_config.hpp first thing.
Moved all WinAPI config macros to the Jamfile.v2 and removed
windows_version.hpp as it was no longer needed. Also enabled inclusion of
windows.h while compiling the library.
Removed auto-linking with psapi.lib and advapi32.lib as it was no longer
working after ecf3114
. Added linking with advapi32.lib to Jamfile.v2.
2015-12-20 21:05:28 +03:00
Andrey Semashev
c6f09d69c8
Fixed compilation on POSIX-like systems. Ported GetTickCount64 emulation to Boost.Atomic and got rid of union-based type punning as it is formally an UB.
2015-12-20 18:15:38 +03:00
Andrey Semashev
388a3e2126
Switch more code to the WinAPI abstraction layer. Use GetModuleHandleW and get_proc_address everywhere to avoid compilation errors for Windows CE.
2015-12-20 17:26:34 +03:00
Andrey Semashev
88ec57deac
Avoid including unneeded Windows headers when SSSE2/AVX2 are not enabled. This hopefully fixes including a missing header on Windows CE.
2015-12-20 15:18:18 +03:00
Andrey Semashev
eeb9ddb1b8
Move some includes to more correct places.
2015-12-20 14:33:48 +03:00
Andrey Semashev
f667fdd8fd
Undef BOOST_AUTO_LINK_NOMANGLE after it's been used.
2015-12-20 14:32:13 +03:00
Andrey Semashev
f75dd58956
Merge pull request #20 from remote-tracking branch 'muggenhor/no-undesired-auto-linking' into develop.
2015-12-20 14:29:02 +03:00
Andrey Semashev
2f88565e5b
Merge pull request #23 from muggenhor/msvc9-sfinae-compatibility
...
Use the MSVC 8 workaround for SFINAE on MSVC 9 as it fails similarly.
2015-12-20 14:23:37 +03:00
Andrey Semashev
92bc025942
Use Boost.Detail.WinAPI for Windows API declarations. Use #pragma intrinsic only with MSVC.
2015-11-15 17:47:43 +03:00
Andrey Semashev
8e4cd877ab
Nonessential changes for testing.
2015-11-15 17:23:52 +03:00
Andrey Semashev
b5969e5233
Changed adaptive_mutex to use pthread_mutex_t. On systems that support it (Linux, FreeBSD, OpenBSD) PTHREAD_MUTEX_ADAPTIVE_NP is used, otherwise the default mutex type. This greatly imporoves performance in case of heavy thread contention: 100 threads - x2.7 records per second, 1000 threads - x4. Less contended cases are mostly unaffected.
2015-11-15 17:18:48 +03:00
Andrey Semashev
5434177322
Renamed spin_mutex.hpp to adaptive_mutex.hpp.
2015-11-15 16:12:13 +03:00
Andrey Semashev
8da446c6d0
Made sure that header.hpp is included last. Also removed the unneeded set_content(0); on TLS creation.
2015-11-10 01:05:51 +03:00
Andrey Semashev
f9dfc45d85
Cleaned up the TLS implementation to avoid reinterpret_casts and associated warnings about violating strict aliasing rules.
2015-11-10 00:59:21 +03:00
Andrey Semashev
3bb37b8b3b
More confident wording about LTO being fixed in gcc 5.1.
2015-11-08 20:31:14 +03:00
Andrey Semashev
bc28630c7f
Added a link to the Boost developers mailing list.
2015-11-04 13:58:30 +03:00
Andrey Semashev
fd3e82a610
Added an explicit call to terminate if any exceptions are thrown in the async frontend destructor. This would have been the case in C++11 already, but the explicit call makes some static analyzers happy and also mandates the same behavior in C++03.
2015-11-04 13:25:24 +03:00
Giel van Schijndel
ecf311409b
Don't auto-link when the user requested that we don't
2015-10-30 14:51:09 +01:00
Giel van Schijndel
3b6d6dc158
Use the MSVC 8 workaround on 9 for SFINAE fail too
...
Template expansion fails on MSVC 9 otherwise with:
> error C2440: 'default argument' : cannot convert from 'int' to 'boost::type'
on the basic_formatter constructor taking a functor.
2015-10-30 14:35:42 +01:00
Andrey Semashev
03325f9dca
Removed novtable attribute, which is no longer valid.
2015-10-15 23:00:23 +03:00
Andrey Semashev
6845eb43cc
Use Boost.Atomic for atomic operations. Remove obsolete atomic_queue.hpp header.
2015-10-15 22:52:06 +03:00
Andrey Semashev
c7f18fd7ab
Replaced BOOST_LOG_USE_WINNT6_API macro with BOOST_USE_WINAPI_VERSION. The target Windows version is now selected with the WinAPI submodule. Also simplified a few preprocessor checks and updated docs.
2015-10-14 22:04:02 +03:00
Andrey Semashev
a65d75a30e
Another workaround for MSVC-7.1.
2015-10-13 12:53:18 +03:00
Andrey Semashev
333a15b227
Added a boost StackOverflow tag.
2015-10-13 12:35:17 +03:00
Andrey Semashev
3e98eddc7c
Added a link to StackOverflow form for asking questions.
2015-10-13 12:28:34 +03:00
Andrey Semashev
eaf71c96ab
A workaround for MSVC 7.1.
2015-10-12 12:24:29 +03:00
Andrey Semashev
490f2dc5b6
Attempt to fix compilation with MSVC-7.1.
2015-10-09 12:45:40 +03:00
Andrey Semashev
e651649e4d
A cleaner workaround for MSVC-10 and older bug that results in picking a wrong constructor of pattern_replacer.
2015-10-06 23:56:23 +03:00
Andrey Semashev
7c210933e8
Added a workaround for MSVC-10 and older bug that results in picking a wrong constructor of pattern_replacer.
2015-10-05 23:42:48 +03:00
Andrey Semashev
d242967b52
Added a link to Boost.DateTime ticket for the facet visibility bug.
2015-10-04 23:05:43 +03:00
Andrey Semashev
284d5e6139
Added a workaround for incorrect file name generation in text file sink backend, when the file name contains date/time placeholders. Fixes #11691 .
2015-10-04 18:37:05 +03:00
Andrey Semashev
b559675cfe
Corrected docs.
2015-10-04 12:03:05 +03:00
Andrey Semashev
b7de827f23
Fixed compilation of character decorators. Added tests.
2015-09-26 19:20:07 +03:00
Andrey Semashev
cae18de32f
Added a few notes to the README.md file.
2015-08-28 21:51:55 +03:00
Andrey Semashev
63f7d70a07
Mode robust check for _POSIX_TIMERS.
2015-08-27 17:47:05 +03:00
Andrey Semashev
ce323aa8c1
Updated changelog.
2015-08-27 17:28:11 +03:00
Andrey Semashev
948d109ba7
Merge pull request #13 from NuxiNL/develop
...
Enable the use of clock_gettime() on Nuxi CloudABI.
2015-08-27 17:20:18 +03:00
Ed Schouten
42e6f26c43
Enable the use of clock_gettime() on Nuxi CloudABI.
...
Just like OpenBSD and HURD, CloudABI provides a clock_gettime() function
without implementing timer_*(). It therefore cannot set _POSIX_TIMERS.
2015-08-27 15:54:58 +02:00
Andrey Semashev
cfebc1a00b
Updated changelog.
2015-08-25 11:39:09 +03:00