Page 1 of 1

Threads and files

Posted: Wed Nov 05, 2003 7:11 am
by Paul Dwyer
Are the functions in the files lib thread safe?

I notice that they work "on the current file" is that current for that thread? what happens is a file is opened in one thread (or in the main thread) and you want a thread to access it? if a different thread is working on a different file then which thread is current?

Cheers

Posted: Wed Nov 05, 2003 1:53 pm
by freak
Actually, almost nothing in PB is thread save.

Threads were actually implemented to do huge calculations or stuff like that
in the background. So the library commands were not written to be thread
save, sorry.

Timo

Posted: Wed Nov 05, 2003 2:17 pm
by Paul Dwyer
Thanks,

Provided I know. I wonder if this is on the request list.