-
Notifications
You must be signed in to change notification settings - Fork 150
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
unable to suppress bu_log from multiple threads simultaneously #100
Comments
To reproduce the error on windows and linux, build and run the following code.
|
hello i'm a beginner, can you please assign me some beginner level issues or any bugs. |
@AnkushSingh0710 Since you're totally commenting on this thread seemingly randomly -- you could try to address this issue. @kennethsdavis Thank you for the report. I'd be very interested to hear more about this multithreaded application of yours. That said, thank you very much for the code snippet that demonstrates this issue and the detailed writeup. I agree that pattern should work the way you're calling without erroneous logging and is quite unexpected. I'm guessing we don't see it in our own applications because logging is not suppressed by default. There certainly isn't a unit test for it (as yet). |
I’m working on an impact simulation. We’re using the brlcad API to fire thousands of rays through models to characterize the material overlap between them. All this can happen from multiple perspectives at once. It’s been an adventure getting this to work. |
@brlcad How do I get this issue assigned to me? |
I am using the BRL-CAD API in a multi-threaded application and would like to suppress all log messages printed to the screen by bu_log. Calling bu_log_hook_delete_all and bu_log_add_hook with an empty function is a near solution. However, if one thread is inside the call to log_call_hooks when a second thread calls bu_log, then the second thread will have its message printed to the screen.
Providing a function that silences bu_log would solve the problem. Though it might be nice to make bu_hook_call thread-safe.
BRL-CAD 7.32.2
The text was updated successfully, but these errors were encountered: