Opened 16 years ago
Last modified 16 years ago
#2 new enhancement
Inefficient Timer Class
Reported by: | Christoph Mayer | Owned by: | stud-veber |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Utility | Version: | 0.1.0 |
Keywords: | timer | Cc: |
Description (last modified by )
The Timer class currently opens up one thread for each timer and therewith creates unnecessary resource overhead. Surely, this can be done more efficiently. There are two options to tackle the problem:
- Use native timer functionality from the OS
- Use the SystemQueue with time-sorted ordering and only one interruptable timer that always times the nearest timer. The SystemQueue class has already some internals for this. As timer callbacks need synchronization with the SystemQueue anyways, this would be a nice and clean solution. But certainly tricky to achieve with good performance.
Change History (3)
comment:1 by , 16 years ago
Type: | defect → enhancement |
---|
comment:2 by , 16 years ago
Description: | modified (diff) |
---|---|
Owner: | changed from | to
comment:3 by , 16 years ago
Note:
See TracTickets
for help on using tickets.
Usefull info:
http://tldp.org/HOWTO/IO-Port-Programming-4.html