Commit graph

556 commits

Author SHA1 Message Date
Joel Holdsworth
3b9d05a67d Made use of boost and nobug, added some documentation, and tidied code 2008-06-07 13:53:17 +01:00
Joel Holdsworth
8dc26f9bd9 Merge branch 'master' of git://git.lumiera.org/LUMIERA into timelinework 2008-06-07 12:10:52 +01:00
Joel Holdsworth
1cf1bd75c5 Merge commit 'HEAD'; branch 'gui' into timelinework 2008-06-07 12:10:24 +01:00
Joel Holdsworth
98df76e919 Added some documentation, and made a minor code correction in
layout_headers
2008-06-07 12:09:22 +01:00
Joel Holdsworth
e12f72abe0 Merge commit 'HEAD'; branch 'timelinework' into gui 2008-06-06 00:30:53 +01:00
Joel Holdsworth
3952e27a8f Removed RefPtrs to make code more elegant 2008-06-06 00:30:31 +01:00
Joel Holdsworth
214eea574a Merge commit 'HEAD'; branch 'timelinework' into gui 2008-06-06 00:00:41 +01:00
Joel Holdsworth
85730b889e Fixed to assertion failures, and move the frame ownership to
HeaderContainer
2008-06-05 23:57:04 +01:00
Joel Holdsworth
9598b92d7e Merge commit 'HEAD'; branch 'timelinework' into gui 2008-06-05 21:00:42 +01:00
Joel Holdsworth
0ac09411bc Basic timeline with scrolling headers now works + Tidying work 2008-06-05 20:27:53 +01:00
Joel Holdsworth
e9747b360c Track backgrounds are now painted from the style 2008-05-31 18:21:05 +01:00
Joel Holdsworth
71b45acf54 Styles for custom widgets now load 2008-05-31 17:44:44 +01:00
Joel Holdsworth
7e2092825e Simple scrolling and drawing added 2008-05-31 13:22:15 +01:00
c0d7ae1aa2 Merge added builder documentation 2008-05-27 02:11:35 +02:00
2e58b02b8a write down implementation specs and further planned details 2008-05-26 07:28:10 +02:00
93908cf29f further planning of implementation details 2008-05-25 06:18:58 +02:00
f3d078f93b add drawing to explain the builder primitives 2008-05-23 07:05:35 +02:00
Joel Holdsworth
ea32ce0337 Merge branch 'master' of git://git.lumiera.org/LUMIERA into gui 2008-05-22 19:31:55 +01:00
Joel Holdsworth
fe975a701d Added some scroll bars 2008-05-22 19:19:04 +01:00
686e47220d written down basics of the builder's internal operation 2008-05-21 05:30:07 +02:00
b5d2e9486e small adaptions to scons, fix a test 2008-05-20 13:04:22 +02:00
287fa11975 added protocol of may dev meeting etc... 2008-05-20 13:03:05 +02:00
6310e9789b Merge ct/devel to see if there are any problems... 2008-05-20 04:58:16 +02:00
Christian Thaeter
f58be32a05 Fixes after rebase
* remove _GNU_SOURCE from tests
 * re-enable C source building in backend
2008-05-19 16:37:50 +02:00
Christian Thaeter
64e549dc81 headers for the memory mapping backend (WIP) 2008-05-19 16:27:30 +02:00
Christian Thaeter
9ad62d0edc Fix: one must not return from a mutex section 2008-05-19 16:27:30 +02:00
Christian Thaeter
241327bcd4 rename 'fhcache' global var to 'lumiera_fhcache' 2008-05-19 16:27:30 +02:00
Christian Thaeter
444b142d85 Correct File flag masking
The hash lookup needs to ignore O_EXCL|O_TRUNC|O_CREAT as well as file
reopening must not use this flags.
2008-05-19 16:27:29 +02:00
Christian Thaeter
c4816c39fd Proper flag and stat handling for files
Filedescriptors create files at construction, each later access becomes
a reopen on the now existing file.

file_handle_acquire() reopens the file to gain a handle when required
and checks that the file is really the one we expected (ino and dev num)
2008-05-19 16:27:29 +02:00
Christian Thaeter
00b9dff106 Doxygen config update
* set EXPORT_ALL=NO to leave out undcoumented entities.
* Fix a lot @file directives
2008-05-19 16:27:29 +02:00
Christian Thaeter
4ed2fe9e7c few more todos in the wiki, plan for a player in roadmap 2008-05-19 16:27:29 +02:00
Christian Thaeter
8311316a92 Doxydocing for the filehandling stuff 2008-05-19 16:27:28 +02:00
Christian Thaeter
dd63a0e190 filedescriptor cleanup and fixes
basically working now, flag masking is not complete yet.
2008-05-19 16:27:28 +02:00
Christian Thaeter
232afe77e9 Filehandling
* add 'backend' for backend global initialization/destruction
  and common functions.
* WIP: 'file' acts as interface to named files, provides posix
  filehandles with and acquire/release function pair.
* 'filehandle' manages posix filehandles internally, refcounted.
* WIP: 'filehandlecache' keeps unused filehandles in a MRU cache

* WIP: test for filehandle management
* improved filedescriptor test
2008-05-19 16:27:28 +02:00
Christian Thaeter
b11ff40fbe Filedescriptor updates
* make registry initialization singleton, no parameters.
 * remove registry init from all functions, has to be called explicitly.
 * some nobug improvements
2008-05-19 16:27:28 +02:00
Christian Thaeter
bb98bb434b add nobug resource tracking to filedescriptors 2008-05-19 16:27:28 +02:00
Christian Thaeter
5286838886 filedescriptor handling basics working, including some tests
It is now possible to acquire/release filedescriptors for existing files
and files to be created.

Filedescriptors are managed in a registry by refcounts, they get
automatically destructed when the last user releases them.
2008-05-19 16:27:28 +02:00
Christian Thaeter
e2e94884ba some refinements to the todo wiki 2008-05-19 16:27:27 +02:00
Christian Thaeter
7a266f22ba integrate filedescriptor tests 2008-05-19 16:27:27 +02:00
Christian Thaeter
791f42c104 WIP: Low level file management
We have 'File' which associates a name with a file and will be used to
offer an interface for the application.

Posix 'Filehandles' which are managed in a 'Filehandlecache' to utilize
a limited number of fd's at optimum.

Internally we use 'Filedescriptor's which manage files, mapping and all
kinds of metadata. Filedescriptors weak referenced by a registry and freed
when the last user vanishes.
2008-05-19 16:27:27 +02:00
Christian Thaeter
94e075d2c2 fix: mrucache_drop() must call the element destructor 2008-05-19 16:23:16 +02:00
Christian Thaeter
03ed87051d fix missing declaration of lumiera_calloc() in safeclib.h 2008-05-19 16:23:16 +02:00
Christian Thaeter
63c07d1274 doxydocing mrucache 2008-05-19 16:23:15 +02:00
Christian Thaeter
dc0cbf0ad8 Fix: off by one allocation error in tmpbuf_snprintf() 2008-05-19 16:23:15 +02:00
Christian Thaeter
ff6ce603a4 tmpbuf_sprintf renamed to tmpbuf_snprintf 2008-05-19 16:23:15 +02:00
Christian Thaeter
0996c386bb Mrucache update
* Fix: unlinking at destroy
* rename add/remove to checkin/checkout
* add a drop function which moves a node to the end for fast reuse
2008-05-19 16:23:15 +02:00
Christian Thaeter
b909c2247d add a cuckoo_nelements function
Query the number of elements stored in a hash, useful for debugging.
2008-05-19 16:23:15 +02:00
Christian Thaeter
293b872b5d extend the MUTEX_SECTION macro with NoBug resource tracking
LUMIERA_MUTEX_SECTION takes now a nobug flag as first argument and
a nobug resource-handle as second argument.

This change works forward for the NoBug resource tracker and
deadlock detector.
2008-05-19 16:23:15 +02:00
Christian Thaeter
b4183ed444 safeclib improvements
* add lumiera_calloc()
 * improve cleanup functions for tmpbuf
2008-05-19 16:23:15 +02:00
Christian Thaeter
5659219e55 correct date in copyright header 2008-05-19 13:31:18 +02:00