V
Vladimir
Hi All,
I created a base class to write log files in threads.
Several classes inherited from my base class writing log files with
different file names.
Right now I lock a mutex equal to full file name to allow just one thread to
write.
What would be correct Monitor class usage in this scenario? What object has
to be locked to lock access only to a specific file instead of locking all?
Is that possible to have my base class to write different log files in
threads locking access just to a single file?
Thanks
Vladimir
I created a base class to write log files in threads.
Several classes inherited from my base class writing log files with
different file names.
Right now I lock a mutex equal to full file name to allow just one thread to
write.
What would be correct Monitor class usage in this scenario? What object has
to be locked to lock access only to a specific file instead of locking all?
Is that possible to have my base class to write different log files in
threads locking access just to a single file?
Thanks
Vladimir