-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Hi,
I start using MatLogger in one of my projects.
When I terminate the process (ctrl+c) that uses matlogger, sometimes I get the following message before the process terminates:
libc++abi.dylib: terminating with uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument
And in this case, I cannot read generated .mat file inside the matlab (even if its size is not 0 kb!)
And I suspect it is related t MatLogger, since before I did not have this error, and MatLogger is using mutex.
However, in other cases I have the following prints inside the terminal:
XBot::MatAppender::~MatAppender()
Flusher thread exiting.. Written 0.0 MB
Flushed all data for file 'myData.mat'
So, I wanted to know what is the correct way to close the logger, and finally call its destructor.
Do I need to flush the available data in YARP::RFModule::close method by calling flush_available_data()method? or I should use reset() method ?
Thank you.
Metadata
Metadata
Assignees
Labels
No labels