From: Paul L. <pl...@au...> - 2001-09-28 18:03:18
|
On 27 Sep 2001 14:10:34 -0500, Nathan Straz wrote: > Could someone who is an expert on pthreads, please grep the sources for > pthread_create and double check their usage? > > I have concerns with many of the cases that try to pass integers at the > last argument in pthread_create where the prototype uses a void *. > Integers and pointers are different sizes on ia64. Besides causing lots > of warning, I suspect this might be causing some real trouble. What is > the proper way to pass thread parameters through a void *? All you really need to do is typecast it. IIRC pth_str03 is done like this and passes parameters under testcases/kernel/sched/pthreads. Usually this is not a big deal, but as we look at portability it could start to matter. I'll try to clean them up, please let me know which one's you've found like this. -Paul Larson |