Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michel Tallon
tao-rt-test-doxygen
Commits
4fea8e0c
Commit
4fea8e0c
authored
Jan 11, 2022
by
Éric Thiébaut
Browse files
Update list of wishes
parent
1a3584c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
TODO.md
View file @
4fea8e0c
...
...
@@ -36,6 +36,30 @@
*
See https://www.drdobbs.com/soft-real-time-programming-with-linux/184402031
for soft-real-time programming hints.
## Errors
Simplify and speed-up error management. Error stack almost never has a depth
greater than one which means that each thread only has to memorize the last
error. The information about the last error can be stored in a per-thread
static data of small size with qualifier
`static _Thread_local`
(or
`static
thread_local`
with
`<threads.h>`
). This data may have a small buffer of given
size to store all needed information (perhaps with a flag indicating whether
error message and/or function name are given by static strings).
Simplifications:
-
No needs to perform any cleanup on exit and no risk or memory
leaks.
-
Bindings will be much easier to write.
Expected speed-up:
-
Only 3ns to retrieve the per-thread data instead of 13ns in actual code.
-
No needs to allocate and free memory for each error. At most, spend some
time to copy the error message and the function name.
## Things to do
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment