[Spread-users] spread 4.0rc2, C and multithreading

jabe at gfz-potsdam.de jabe at gfz-potsdam.de
Thu Mar 6 03:18:46 EST 2008


> The libspread-core (not t) is not meant to be threadsafe as it does not
> protect against multiple readers and is not linked against threadsafe c
> libraries. It should generally only be used in single-threaded programs.

Sure.

> However, if you are managing the locking for Spread connnections yourself
> and want to have direct control over what the library is doing (so it never
> blocks behind your back) then you could use the libspread-core library in a
> multithreaded program by making sure you never have two threads in
> conflicting library calls at the same time.

Unfortunately that's no option for me. I have one thread reading the messages 
blocking and another one sending messages continuously.
I need correct resource locking inside spread to call SP_receive and 
SP_multicast simultaneously.

Regards,
Jan




More information about the Spread-users mailing list