-
Notifications
You must be signed in to change notification settings - Fork 101
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
Included utils to load, unload and get symbols from shared libraries #215
Conversation
5bcd3b4
to
b29006f
Compare
Shared library working on Windows Signed-off-by: ahcorde <ahcorde@gmail.com>
b29006f
to
268533b
Compare
Signed-off-by: ahcorde <ahcorde@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left some requested changes, thanks for factoring it out to this package, I think it will be useful here.
It would be nice to have a stanza in each of the functions like this one:
rcutils/include/rcutils/time.h
Lines 59 to 65 in af3e145
* <hr> | |
* Attribute | Adherence | |
* ------------------ | ------------- | |
* Allocates Memory | No | |
* Thread-Safe | Yes | |
* Uses Atomics | No | |
* Lock-Free | Yes |
We may have to just say "* depends on underlying OS functions like dlopen()", etc... but at least it makes people calling these functions think about it when using it, even if it's not a clear yes/no for each.
232a58a
to
54a0fa5
Compare
Signed-off-by: ahcorde <ahcorde@gmail.com> Added shared library test fix return error on shared library for windows Signed-off-by: ahcorde <ahcorde@gmail.com>
54a0fa5
to
e87960b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left some more comments. Also I think at least one of Dirk's comments still need addressing, about the linking in cmake I think.
Thanks for iterating on it!
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With passing CI.
As discussed in this PR ros/class_loader#139. It makes sense to include the logic of loading/unloading shared libraries and symbols in
rcutils
. These functions will be used inclass_loader
,rmw_implementation
,rosidl_typesupport
androsbag2
.This other PR makes use of this new capability ros/class_loader#139