| My point exactly...
Mike
-----Original Message-----
>From: Felipe Sateler
>Sent: Jun 4, 2008 4:26 PM
>To: Developer discussions
>Subject: Re: [Cs-dev] An oddity
>
>On Wednesday 04 June 2008 16:10:33 Fons Adriaensen wrote:
>> I know all this. So a pthread_t is 32 bits in most cases and
>> 64 bits on Windows. So what ? It just shouldn't matter as long
>> as you don't transfer binary data containing a pthread_t from
>> one platform to the other.
>>
>> Just **don't cast it** and use pthread_t wherever the data is
>> in fact a pthread_t. It will compile and work on all platforms
>> that have pthread_t. That it is a 64-bit struct in some cases
>> shouldn't matter, C functions accept a struct as a parameter
>> and can also return a struct.
>>
>> BTW, on Linux pthread_t is not a pointer. It's a long int.
>> Not that it should matter.
>
>This means changing the API for this release, and tying the csound ABI to
>pthread's. If pthread decides to change pthread_t for some reason, then
>csound's ABI will change too.
>
>--
>Felipe Sateler
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |