]> git.tdb.fi Git - libs/core.git/log
libs/core.git
14 years agoMake to_unixtime const
Mikko Rasa [Fri, 26 Nov 2010 12:59:20 +0000 (12:59 +0000)]
Make to_unixtime const
Add fill_timeval method

14 years agoRefPtr:
Mikko Rasa [Fri, 8 Oct 2010 19:54:28 +0000 (19:54 +0000)]
RefPtr:
Add templated copy-ctor and copy-assignment
Add assignment from a plain pointer for efficiency
Add keep() method to prevent deletion of data
Fix a potential leak in cast_dynamic
Style updates

14 years agoFix a #include to use relative filename
Mikko Rasa [Thu, 11 Feb 2010 08:13:43 +0000 (08:13 +0000)]
Fix a #include to use relative filename

14 years agoAdd RemoveReference meta-function
Mikko Rasa [Wed, 3 Feb 2010 13:35:47 +0000 (13:35 +0000)]
Add RemoveReference meta-function

14 years agoAdd LogicError exception class
Mikko Rasa [Mon, 21 Dec 2009 07:27:10 +0000 (07:27 +0000)]
Add LogicError exception class
Throw InvalidState in DateTime::get_timestamp for out-of-range values

15 years agoBump version to 1.1 1.1
Mikko Rasa [Mon, 21 Sep 2009 16:40:37 +0000 (16:40 +0000)]
Bump version to 1.1
Update Build file for upcoming Builder release

15 years agoFix a compilation error on 64-bit systems
Mikko Rasa [Sun, 20 Sep 2009 16:16:11 +0000 (16:16 +0000)]
Fix a compilation error on 64-bit systems

15 years agoFix GetOpt to get strings correctly
Mikko Rasa [Fri, 11 Sep 2009 17:34:36 +0000 (17:34 +0000)]
Fix GetOpt to get strings correctly
Handle missing/extraneous arguments in OptBase

15 years agoRewrite Timer to use a heap instead of set to deal with duplicate timeouts
Mikko Rasa [Fri, 11 Sep 2009 17:32:58 +0000 (17:32 +0000)]
Rewrite Timer to use a heap instead of set to deal with duplicate timeouts
Get local timezone from /etc/localtime instead of tzset()
Add TimeStamp::to_unixtime

15 years agoImprove GetOpt help generation
Mikko Rasa [Thu, 7 May 2009 06:01:55 +0000 (06:01 +0000)]
Improve GetOpt help generation

15 years agoFix some win32 compile errors
Mikko Rasa [Sun, 8 Mar 2009 15:41:38 +0000 (15:41 +0000)]
Fix some win32 compile errors

15 years agoMake sure all files have the correct header
Mikko Rasa [Wed, 24 Dec 2008 07:01:36 +0000 (07:01 +0000)]
Make sure all files have the correct header
Update class member order to new style

15 years agoAdd copy constructor and copy assignment to Variant
Mikko Rasa [Mon, 15 Dec 2008 11:40:24 +0000 (11:40 +0000)]
Add copy constructor and copy assignment to Variant

15 years agoAdd support for time zones
Mikko Rasa [Mon, 15 Dec 2008 11:33:48 +0000 (11:33 +0000)]
Add support for time zones
Fix bugs in DateTime addition operations
Add subtraction operators for DateTime

16 years agoMSVC compatibility fixes
Mikko Rasa [Thu, 13 Nov 2008 10:40:34 +0000 (10:40 +0000)]
MSVC compatibility fixes

16 years agoConvert a C-style cast to C++-style
Mikko Rasa [Wed, 24 Sep 2008 16:16:17 +0000 (16:16 +0000)]
Convert a C-style cast to C++-style

16 years agoAdd validation for DateTime constructor parameters
Mikko Rasa [Sun, 31 Aug 2008 00:14:30 +0000 (00:14 +0000)]
Add validation for DateTime constructor parameters

16 years agoImprove BackTrace printing
Mikko Rasa [Sun, 24 Aug 2008 21:35:30 +0000 (21:35 +0000)]
Improve BackTrace printing

16 years agoOnly require -ldl on Linux
Mikko Rasa [Fri, 15 Aug 2008 21:43:59 +0000 (21:43 +0000)]
Only require -ldl on Linux

16 years agoexecinfo.h is a GNU extension so check for glibc
Mikko Rasa [Fri, 15 Aug 2008 17:55:32 +0000 (17:55 +0000)]
execinfo.h is a GNU extension so check for glibc

16 years agoUpdate and clean up svn:ignore 1.0
Mikko Rasa [Sun, 10 Aug 2008 18:25:27 +0000 (18:25 +0000)]
Update and clean up svn:ignore
Bump version number for release
Add License.txt to tarball

16 years agoAdd a "where" property to Exception class
Mikko Rasa [Wed, 6 Aug 2008 16:29:57 +0000 (16:29 +0000)]
Add a "where" property to Exception class

16 years agoHandle constness in Variant
Mikko Rasa [Tue, 5 Aug 2008 06:33:56 +0000 (06:33 +0000)]
Handle constness in Variant
Return a reference from Variant::value()
Add meta.h for metaprogramming stuff

16 years agoReport uncaught exceptions with a MessageBox on win32
Mikko Rasa [Wed, 23 Jul 2008 13:03:21 +0000 (13:03 +0000)]
Report uncaught exceptions with a MessageBox on win32

16 years agoAllow canceling timers
Mikko Rasa [Sat, 19 Jul 2008 13:00:56 +0000 (13:00 +0000)]
Allow canceling timers
Use MutexLocks for more robustness
Add get_next_timeout function

16 years agoRemove an obsolete Makefile
Mikko Rasa [Tue, 24 Jun 2008 19:33:50 +0000 (19:33 +0000)]
Remove an obsolete Makefile
Translate windows error codes to text in SystemError

16 years agoFix a gcc 4.3 style warning
Mikko Rasa [Tue, 24 Jun 2008 14:24:46 +0000 (14:24 +0000)]
Fix a gcc 4.3 style warning

16 years agoAdd missing includes
Mikko Rasa [Sun, 8 Jun 2008 15:17:34 +0000 (15:17 +0000)]
Add missing includes

16 years agoPthread is no longer recognized as a package by Builder
Mikko Rasa [Wed, 19 Mar 2008 11:41:35 +0000 (11:41 +0000)]
Pthread is no longer recognized as a package by Builder

16 years agoAdd Variant class
Mikko Rasa [Mon, 10 Mar 2008 00:52:03 +0000 (00:52 +0000)]
Add Variant class
Fix svn:keywords property on core/*

16 years agoFix an integer rounding error in Profiler
Mikko Rasa [Fri, 28 Dec 2007 20:47:02 +0000 (20:47 +0000)]
Fix an integer rounding error in Profiler

16 years agoStore hInstance in Application class on win32
Mikko Rasa [Thu, 27 Dec 2007 17:10:20 +0000 (17:10 +0000)]
Store hInstance in Application class on win32

16 years agoBugfixes
Mikko Rasa [Fri, 7 Dec 2007 18:06:33 +0000 (18:06 +0000)]
Bugfixes

16 years agoStore the failed key in KeyError
Mikko Rasa [Wed, 5 Dec 2007 15:21:01 +0000 (15:21 +0000)]
Store the failed key in KeyError

17 years agoFix a sign error in ProfilingScope
Mikko Rasa [Sun, 11 Nov 2007 19:27:59 +0000 (19:27 +0000)]
Fix a sign error in ProfilingScope
Add TICK_BUSY mode to Application

17 years agoUse operator void * instead of bool in Time classes to avoid obscure problems resulti...
Mikko Rasa [Sat, 10 Nov 2007 21:45:03 +0000 (21:45 +0000)]
Use operator void * instead of bool in Time classes to avoid obscure problems resulting from implicit conversion

17 years agoRewrite Time::Timer to not force the use of a thread, so it's more useful.
Mikko Rasa [Fri, 19 Oct 2007 12:21:52 +0000 (12:21 +0000)]
Rewrite Time::Timer to not force the use of a thread, so it's more useful.

17 years agoAdd Debug::Profiler
Mikko Rasa [Fri, 12 Oct 2007 19:20:54 +0000 (19:20 +0000)]
Add Debug::Profiler

17 years agoRename error.* to except.*
Mikko Rasa [Thu, 4 Oct 2007 20:13:32 +0000 (20:13 +0000)]
Rename error.* to except.*

17 years agoUse dladdr instead of backtrace_symbols in Backtrace::create (both are GNU-specific...
Mikko Rasa [Sat, 22 Sep 2007 10:59:03 +0000 (10:59 +0000)]
Use dladdr instead of backtrace_symbols in Backtrace::create (both are GNU-specific anyway)
Fix an error handling bug in demangle
Output backtrace for uncaught exceptions if one exists

17 years agoRemove the custom demangle function and use GCC's abi::__cxa_demangle instead
Mikko Rasa [Mon, 17 Sep 2007 10:51:07 +0000 (10:51 +0000)]
Remove the custom demangle function and use GCC's abi::__cxa_demangle instead
Demangle uncaught exception type
Return a special error code on uncaught exception
Use vector instead of list or GetOpt::get_args()

17 years agoterminate instead of rethrowing an uncaught exception
Mikko Rasa [Mon, 27 Aug 2007 09:02:27 +0000 (09:02 +0000)]
terminate instead of rethrowing an uncaught exception

17 years agoAdd types.h
Mikko Rasa [Tue, 21 Aug 2007 15:04:44 +0000 (15:04 +0000)]
Add types.h

17 years agoReorder components to get headers install correctly
Mikko Rasa [Tue, 21 Aug 2007 15:03:18 +0000 (15:03 +0000)]
Reorder components to get headers install correctly
Add RawTime typedef
Move application creation inside the toplevel try-catch

17 years agoTrap and explain uncaught exceptions
Mikko Rasa [Sat, 7 Jul 2007 17:51:16 +0000 (17:51 +0000)]
Trap and explain uncaught exceptions

17 years agoWin32 doesn't have execinfo.h, so don't include it
Mikko Rasa [Mon, 11 Jun 2007 06:37:33 +0000 (06:37 +0000)]
Win32 doesn't have execinfo.h, so don't include it
Add KeyError
Add release() to RefPtr

17 years agoMake this thing actually compile
Mikko Rasa [Fri, 25 May 2007 17:32:16 +0000 (17:32 +0000)]
Make this thing actually compile

17 years agoAssimilate exceptions and RefPtr from mspmisc
Mikko Rasa [Fri, 25 May 2007 17:22:57 +0000 (17:22 +0000)]
Assimilate exceptions and RefPtr from mspmisc
Assimilate GetOpt
Do not require pthread on win32
Add an optional feature to generate backtraces on exceptions
Allow semaphores to be created with an external mutex
Rewrite win32 semaphore implementation to more closely correspond the POSIX one
Allow MutexLock to be unlocked initially
Rewrite MutexPtr to use a RefPtr<MutexLock> instead of being refcounted itself
Fix some multiple inclusion guards
Add $Id$ tags
Fix Time::now() on win32

17 years agoAdded DateTime
Mikko Rasa [Mon, 26 Mar 2007 20:08:11 +0000 (20:08 +0000)]
Added DateTime
Reworked operator<< for TimeDelta

18 years agoUse Time::sleep instead of sleep in Application::main
Mikko Rasa [Mon, 27 Nov 2006 14:12:23 +0000 (14:12 +0000)]
Use Time::sleep instead of sleep in Application::main
Prefix usage reason with "UsageError: "

18 years agoThrow out anything polling related - they will go to libmspio eventually
Mikko Rasa [Fri, 17 Nov 2006 23:15:04 +0000 (23:15 +0000)]
Throw out anything polling related - they will go to libmspio eventually
Remove some old files
Redesign Application::main

18 years agoAdd a missing mutex unlock into Semaphore::wait
Mikko Rasa [Tue, 3 Oct 2006 21:25:23 +0000 (21:25 +0000)]
Add a missing mutex unlock into Semaphore::wait
Make MutexLock noncopyable

18 years agoAdd const TimeDelta zero
Mikko Rasa [Sat, 9 Sep 2006 15:57:08 +0000 (15:57 +0000)]
Add const TimeDelta zero

18 years agoWin32 type warning fixed
Niko Liikanen [Thu, 7 Sep 2006 12:53:02 +0000 (12:53 +0000)]
Win32 type warning fixed
source/time/utils.cpp:78: warning: passing `double' for converting 1 of `void Sleep(DWORD)'

18 years agoChange sched_yield to a short sleep to improve performance on slower machines
Mikko Rasa [Wed, 6 Sep 2006 20:53:38 +0000 (20:53 +0000)]
Change sched_yield to a short sleep to improve performance on slower machines

18 years agoAdd LDFLAGS to CXX when linking...
Niko Liikanen [Tue, 5 Sep 2006 20:31:10 +0000 (20:31 +0000)]
Add LDFLAGS to CXX when linking...

18 years agoWin32-compatibility
Mikko Rasa [Tue, 5 Sep 2006 20:24:43 +0000 (20:24 +0000)]
Win32-compatibility

18 years agoWin32 compilation fixes
Mikko Rasa [Tue, 5 Sep 2006 13:32:12 +0000 (13:32 +0000)]
Win32 compilation fixes

18 years agoSemaphore is now win32-compatible, I hope
Mikko Rasa [Tue, 5 Sep 2006 12:24:46 +0000 (12:24 +0000)]
Semaphore is now win32-compatible, I hope

18 years agoNew Makefile to work with subdirs (For Win32 build)
Niko Liikanen [Mon, 4 Sep 2006 11:03:10 +0000 (11:03 +0000)]
New Makefile to work with subdirs (For Win32 build)

18 years agoAdd Build file
Mikko Rasa [Sun, 3 Sep 2006 18:52:08 +0000 (18:52 +0000)]
Add Build file

18 years agoRename to libmspcore
Mikko Rasa [Mon, 28 Aug 2006 07:59:47 +0000 (07:59 +0000)]
Rename to libmspcore
Combine with libmsptime

18 years agoStatic/Shared lib extension tweaks
Niko Liikanen [Thu, 24 Aug 2006 21:08:50 +0000 (21:08 +0000)]
Static/Shared lib extension tweaks
removed header/static lib from install

18 years agoWinMain for Win32
Niko Liikanen [Thu, 24 Aug 2006 20:41:28 +0000 (20:41 +0000)]
WinMain for Win32

18 years agoFixed Makefile linker flags
Niko Liikanen [Thu, 24 Aug 2006 19:57:09 +0000 (19:57 +0000)]
Fixed Makefile linker flags

18 years agoNative threads for Win32
Mikko Rasa [Thu, 24 Aug 2006 18:26:01 +0000 (18:26 +0000)]
Native threads for Win32

18 years agoWin32 tweaks
Niko Liikanen [Thu, 24 Aug 2006 16:03:09 +0000 (16:03 +0000)]
Win32 tweaks

18 years agoSignal definitions for Win32
Niko Liikanen [Thu, 24 Aug 2006 15:54:29 +0000 (15:54 +0000)]
Signal definitions for Win32

18 years agoUse an extra bool variable to indicate thread validity
Mikko Rasa [Thu, 24 Aug 2006 13:27:46 +0000 (13:27 +0000)]
Use an extra bool variable to indicate thread validity

18 years agoFirst version
Niko Liikanen [Wed, 23 Aug 2006 22:32:42 +0000 (22:32 +0000)]
First version

18 years agoAdd files
Mikko Rasa [Mon, 21 Aug 2006 17:04:11 +0000 (17:04 +0000)]
Add files

18 years agoCreate trunk
Mikko Rasa [Mon, 21 Aug 2006 17:01:49 +0000 (17:01 +0000)]
Create trunk