Vinnie Falco
3fbff6e620
beast cleanup and tidying:
...
* Replace custom types with C++11 <cstdint> types
* Fix sqlite integer intos and uses
* Fix String implicit integer constructors
* Escape the enclosing namespace in sqdb
* Replace contract checks with assert
* Make many header files compile independently
* Remove the dependence on beast_core.h in many places
* Remove unused or obsolete classes and functions
* Remove unused or obsolete macros
* Remove unused network functions and files
* Remove unused or obsolete classes:
- ChildProcess
- HighResolutionTimer
- InterProcessLock
- Throw
- TrackedMutex
- UntrackedMutex
- XmlDocument
- XmlElement
2014-03-23 15:23:55 -07:00
Vinnie Falco
2d490f6e6a
beast cleaning and tidying:
...
* Consolidate small modules into one
* Remove Android-specific platform support
* Remove Chrono.h from beast_core.h
* Removed files:
- TypeTraits.h
- Utility.h
- Net.h
- Asio.h
* Remove zlib support:
- Remove inline zlib library sources
- Remove GZIPCompressorOutputStream
- Remove GZIPDecompressorInputStream
* Remove obsolete or unused classes:
- AbstractObject
- BigInteger
- BufferedInputStream
- CacheLine
- CPUMeter
- DatagramSocket
- DynamicObject
- FileLogger
- FPUFlags
- Identifier
- JSON
- LocalisedStrings
- MACAddress
- MemoryAlignment
- MemoryInputStream
- MemoryMappedFile
- NamedValueSet
- OptionalScopedPointer
- PerformanceCounter
- PropertySet
- ScopedTimeInterval
- SparseSet
- SpinDelay
- StreamingSocket
- StringPool
- SubregionStream
- Uuid
- Variant
2014-03-21 07:30:50 -07:00
Howard Hinnant
d580e7c694
General tidy and refactoring:
...
* Use nullptr (C++11) instead of NULL.
* Put each file into its own namespace declaration.
* Remove "using namespace" directives and add scope qualifiers.
* Control when beast's implementation of std::equal (C++14) is used.
* Tidy up some const declarations.
Conflicts:
src/ripple_app/shamap/SHAMapSync.cpp
src/ripple_app/tx/TransactionEngine.cpp
2014-03-19 13:42:01 -07:00
Vinnie Falco
d4a5c0353d
beast, beast::asio improvements and fixes:
...
* New maybe_const_t alias for maybe_const
* New asio::enable_wait_for_async for safe cleanup
* New asio::memory_buffer, a managed boost::asio compatible buffer
* shared_handler improvements:
- Can be 'empty' (no stored handler).
- Default constructible as 'empty'.
- Safe evaluation in bool contexts, false==empty
* Fix is_call_possible metafunction:
- Works on empty argument lists
- Works with reference types
* Replace SafeBool idiom with C++11 explicit operator bool
* Move IPAddress function definitions to the header
* Move cyclic_iterator to container/
* Remove unused BufferType
* Remove obsolete classes:
- NamedPipe
- ReadWriteLock
- ScopedReadLock
- ScopedWriteLock
- LockGuard
2014-03-17 17:40:55 -07:00
NATTSiM
eb19343f91
Fix clang compile
2013-12-27 17:46:51 -08:00
Patrick Dehne
55dd5b5547
Add beast_vflib compatibility module and stand alone unit test app
2013-10-23 17:37:00 -07:00
Vinnie Falco
f4120635e9
Rename to IPAddress and remove unused files
2013-10-22 10:43:16 -07:00
Patrick Dehne
504a892887
Wrap hiResCounterHandler in a function to prevent an order of initialization problems
2013-10-20 23:38:52 +02:00
Patrick Dehne
ef6e381de3
Add missing Url.h include
2013-10-19 15:54:01 -07:00
Vinnie Falco
6c7f5d093c
Move many Thread related classes
2013-10-04 14:34:01 -07:00
Vinnie Falco
c864e4d3db
Move WaitableEvent
2013-10-04 14:33:59 -07:00
Alex Dupre
94e40dc554
Fix unittest, by removing recursive call.
2013-09-28 20:25:41 +02:00
Vinnie Falco
1ef044d628
Build fixes
2013-09-27 05:15:55 -07:00
Vinnie Falco
5c5de57290
Reorganize beast modules and files
2013-09-23 10:13:24 -07:00
Vinnie Falco
ebbd9ff414
Move TargetPlatform.h to beast/Config.h
2013-09-19 14:42:52 -07:00
Vinnie Falco
34fffca202
Rename beast sources for consistency
2013-09-19 14:42:51 -07:00
Vinnie Falco
43e6d345e4
General beast update, fixes, optimizations, features:
...
* Clean ups, optimizations, and new File::commonDocumentsDirectory enum
* Replace sortArray with std::sort for performance
* More error tolerance in XML parser, speedups
* Refactor some byte-order mark detection code
* Add String::appendCharPointer overloads
* More XML parser optimisations and better error detection
* Misc performance tweaks
* Fixes for support of non utf8 strings
* Increased precision when storing strings in XmlElement
* Minor clean-ups
* Minor fix to XmlDocument
* Cleanups to CriticalSection and related synchronization primitives
* Fix DynamicArray unit test
2013-09-10 10:36:46 -07:00
Vinnie Falco
4676db126a
Remove BEAST_CATCH_UNHANDLED_EXCEPTIONS
2013-09-09 13:34:18 -07:00
Vinnie Falco
96587dc68c
Add BeforeBoost.h and tidy up beast system headers
2013-09-01 12:22:08 -07:00
Vinnie Falco
d9d291abcb
Tidy up includes and header material
2013-08-30 17:33:33 -07:00
Vinnie Falco
5c2da08c13
Fix warnings
2013-08-26 18:59:57 -07:00
Vinnie Falco
5e5b49d4e2
Consolidate Process::terminate code
2013-08-15 15:45:18 -07:00
Vinnie Falco
b13f35645a
Call _exit from Process::terminate()
2013-08-12 13:29:24 -07:00
Vinnie Falco
9aaaa6aef0
Make Uncopyable derivations public
2013-08-07 15:16:38 -07:00
Alex Dupre
d3a07234cd
Fix retrieval of CPU info (number of CPUs, speed, flags, vendor) on FreeBSD,
...
using 'dmesg' and 'sysctl' instead of /proc/cpuinfo that is Linux-specific.
2013-08-05 09:39:34 -07:00
Vinnie Falco
4c987d04d6
Add tests for SSE3 capability
2013-07-31 16:35:52 -07:00
Vinnie Falco
728ace79c5
Fix Android warnings
2013-07-31 16:29:34 -07:00
Vinnie Falco
7008db7dda
Add initiallySignaled parameter to WaitableEvent
2013-07-29 13:31:10 -07:00
Vinnie Falco
dc7035ed19
Update RandomAccessFile unit test
2013-07-21 12:55:47 -07:00
Vinnie Falco
b3b188061a
Fix POSIX RandomAccessFile
2013-07-21 12:54:11 -07:00
Vinnie Falco
49f70c083d
Add POSIX RandomAccessFile native routines
2013-07-21 12:54:11 -07:00
Vinnie Falco
ed392300b4
Fix RandomAccessFile read
2013-07-21 12:54:10 -07:00
Vinnie Falco
8208bb25ba
Add RandomAccessFile
2013-07-21 12:54:07 -07:00
Vinnie Falco
4f19ea4a8e
Fix warning
2013-07-12 14:43:06 -07:00
Vinnie Falco
b5fbcfaa8e
Replace deprecated GetVersionEx Win32 call
2013-07-10 09:51:32 -07:00
Vinnie Falco
caa3a5d0bb
Replace calls to deprecated siginterrupt()
2013-07-10 09:51:26 -07:00
JoelKatz
34f4b3cad4
beast, not BEAST
2013-07-03 18:39:49 -07:00
Vinnie Falco
03948cd685
Various beast cleanups
2013-07-03 10:07:46 -07:00
Alex Dupre
10a0db9160
Linux implementation of isRunningUnderDebugger using ptrace() doesn't work on FreeBSD.
...
(I doubt it'll work on Linux, too, but I'm not sure)
2013-07-03 09:41:43 -07:00
Alex Dupre
8260b75586
FreeBSD tuning.
2013-07-03 09:41:43 -07:00
Vinnie Falco
e84b524fc4
Default MSVC CRT Debug heap leak checks to ON
2013-07-01 09:32:07 -07:00
Vinnie Falco
57d0e556d8
Fix File::nonexistent false leak using SharedSingleton
2013-07-01 09:32:05 -07:00
Vinnie Falco
3fea8a4202
Rename SharedSingleton and move files around
2013-07-01 09:32:05 -07:00
Vinnie Falco
ca1eda2df1
Use LeakChecked throughout Beast
2013-07-01 09:32:04 -07:00
Vinnie Falco
386fea5e71
Tidy up and activate the MSVC Debug Heap
2013-07-01 09:32:03 -07:00
Alex Dupre
1832463010
Implement MACAddress::findAllAddresses as in MacOSX.
2013-06-29 10:04:27 +02:00
Alex Dupre
a0baaeafd1
Use nanosleep on FreeBSD, instead of failing because clock_nanosleep is missing.
2013-06-29 10:02:51 +02:00
Vinnie Falco
74e8c881f7
Add missing native BSD support for Beast
2013-06-26 09:24:44 -07:00
Vinnie Falco
94e9632234
Add override specifier to some Beast functions
2013-06-24 15:51:32 -07:00
Vinnie Falco
3699b74ebb
Alternate thread naming for older GLIBC
2013-06-24 15:07:09 -07:00