why thread functions need announced '__cdecl'?


sample formula shows emanate threads controlling mfc declares thread duty both stationary __cdecl. since latter required? boost threads don't worry convention, only an anachronism?



for instance (mfc):



static __cdecl uint myfunc(lpvoid pparam)
{
...
}

cwinthread* pthread = afxbeginthread(myfunc, ...);


whereas boost:



static vacant func()
{
...
}

boost::thread t;
t.create(&func);


(the formula samples competence 100% repremand i am nowhere circuitously an ide).



what indicate __cdecl? does assistance formulating threads?



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?