[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Pfork() question/problem
On Sun, 21 Jun 1998, Katherine L Ellis wrote:
> This works. HOWEVER if I put an evnt_timer(20) for example right in
> the loop. this will lock up the whole system, Need to reboot after
> that.
> ANy idea what's happening?
Do you use a thread-safe AES-library? The normal library use global
arrays, so if you call the AES simultanously from two threads you'll
mess up boths calls. You need to use a library that passes an address
to the global array in each call, so you can use separate arrays for
each thread. GEMlib has one from pl34 (iirc) and upwards.
/*
** Jo Even Skarstein http://www.stud.ntnu.no/~josk/
**
** beer - maria mckee - atari falcon - babylon 5
*/