Re: Unexpected value-at for NULL'd pointer with pthreads

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>> You are nulling the local variable, not the array element it points to.
>
> In case that doesn't make the problem obvious: each thread executing
> start_routine has its own local variables.
>

That makes perfect sense.  I'll incorporate the changes into the
simplified program and then into my main project and report back.
Sadly I knew about all the pass-by-value-only stuff and still missed
this even after hours of looking; thanks for the second set of eyes.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux