Re: [fpc-pascal] SOLVED : Re: GetAffinity\SetAffinity

2013-11-25 Thread Sven Barth
Am 25.11.2013 15:31 schrieb "Brian" : > > Problem solved ... ironically the solution was from a Windows guy. > > Faulty Code > ... > Corrected Code : InitCriticalSection() BEFORE BeginThread() > Ah yes. Always keep in mind that the thread could already be happily running (or in extreme cases even

[fpc-pascal] SOLVED : Re: GetAffinity\SetAffinity

2013-11-25 Thread Brian
Problem solved ... ironically the solution was from a Windows guy. Faulty Code Core2Thread_ID := BeginThread(@Core2_Thread_Test); InitCriticalSection(CriticalSection_Core2); Set_Thread_CPU_Core(Core2Thread_ID,$01); writeln('Core2 ok'); Core22Thread_ID := BeginThread(@Core22_T