Take a look at the threadsafeThread:Queue module.
Just create one more thread and have all your other threads enqueue() the data to it and then it dequeue()'s the data and writes it to the log. No locking necessary.
The synopsis on the link above tells you pretty much all you need to know.
Examine what is said, not who speaks.
In reply to Re: Threaded file access
by BrowserUk
in thread Threaded file access
by znu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |