Re: [AD] Get thread id

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Fri, 17 Aug 2012 15:15:23 +0300, Dimitris Zenios <dimitris.zenios@xxxxxxxxxx> wrote:
> Patch to add al_get_thread_id.

The pthread implementation is not portable:

    POSIX.1 allows an implementation wide freedom in choosing the type
    used to represent a thread ID; for example, representation using
    either an arithmetic type or a structure is permitted.

It could also be wider than 32-bits.

Peter




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/