Re: [AD] Get thread id

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


For example where you have some functions that has be executed only
from the main thread.You record the main threads id once the
application starts and inside the functions you check if the calling
thread id is the same as the main thread id. Use full for
multithreaded applications.

On Fri, Aug 17, 2012 at 3:20 PM, Elias Pschernig
<elias.pschernig@xxxxxxxxxx> wrote:
> On Fri, 17 Aug 2012 15:15:23 +0300
> Dimitris Zenios <dimitris.zenios@xxxxxxxxxx> wrote:
>
>> Patch to add al_get_thread_id.
>
> Thanks.
>
> And sorry if it's obvious - but what would be a possible use case for
> this?
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> --
> https://lists.sourceforge.net/lists/listinfo/alleg-developers




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