-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CFE_TIME_GetTime() should not return a structure #45
Comments
Imported from trac issue 14. Created by jphickey on 2014-12-30T22:06:05, last modified: 2019-04-01T16:46:45 |
I suggest we fix this for 7.0. Also problems in SB that I'm addressing. |
Need to resolve how to handle this. Deprecate the old and and add one with a new name? Or breaking change as part of 7.0 and just fix it to be consistent? |
I had assumed this would be address as part of a more comprehensive CFE TIME cleanup, as there are so many other issues with this subsystem (#78, #109, #123, and probably more?). With respect to this particular API we should probably first discuss whether there is still a need/justification for the Perhaps add |
Hmm, seems like an opportune time to make cFE Time a modular structure as with cFE msg? |
Good points. Not a critical change for 7.0, makes sense to me to include as part of the comprehensive cleanup (and possible modularization) post 7.0. |
CCB 2020-09-02 Will include in bigger time services update |
Additionally analyze all CFE_TIME_SysTime_t pass by value cases and resolve. Used in a handful of APIs:
|
In general it is not a good idea to return a structure from a function because compilers do not all perform this the same way. Some compilers/ABIs are reasonably efficient at this (as gcc seems to be), but others are not so efficient and will do extra copies of the structure.
The text was updated successfully, but these errors were encountered: