Colin Burgess(deleted)
|
Re: Reg. pthreads compilation.
|
Colin Burgess(deleted)
07/13/2009 10:48 AM
post33640
|
Re: Reg. pthreads compilation.
However you should be use pthread_attr_setdetachstate() for PTHREAD_CREATE_DETACHED
Thomas Haupt wrote:
> Hi Vinod,
>
> the member name is '__flags' (with two leading underscores).
>
> Your code should read
> Attr.__flags |= PTHREAD_MULTISIG_DISALLOW;
> Attr.__flags |= PTHREAD_CREATE_DETACHED;
>
> Kind regards,
> - Thomas
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post33635
>
--
cburgess@qnx.com
|
|
|
vinod nagula
|
Re: Reg. pthreads compilation.
|
vinod nagula
07/16/2009 9:47 AM
post33904
|
Re: Reg. pthreads compilation.
Thanks Thamus,
I have one more problem.
I am using following structure, it is defined in net/if.h.
struct ifreq ifr;
ifr.ifr_flags = ifr.ifr_flags | IFF_PROMISC;
When I compile my application following errors displayed,
error: storage size of 'ifr' isn't known
error: invalid application of 'sizeof' to incomplete type 'struct ifreq'
error: 'IFF_PROMISC' undeclared (first use in this function)
error: invalid application of 'sizeof' to incomplete type 'struct ifreq'
error: invalid application of 'sizeof' to incomplete type 'struct ifreq'
error: invalid application of 'sizeof' to incomplete type 'struct ifreq'
Thanks again,
vinod.
|
|
|