From liblfds.org
Revision as of 14:07, 4 January 2015 by Admin (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Source File



typedef [type]  thread_return_t;


To abstract away the differences in the return value in the thread function prototype on different platforms, liblfds uses a typedef.


On Windows, the thread function prototype, ThreadProc, is;

DWORD WINAPI ThreadProc( __in  LPVOID lpParameter );

We see that the return type is a DWORD. (WINAPI is a define for __stdcall, which specifies the calling convention, rather than the return type; we are only interested in the return type).

As such, on the Windows platform, thread_return_t looks like this;

typedef DWORD  thread_return_t

See Also