https://www.liblfds.org/mediawiki/index.php?title=r7.1.1:Typedef_test_pal_thread_return_t&feed=atom&action=historyr7.1.1:Typedef test pal thread return t - Revision history2024-03-29T02:01:11ZRevision history for this page on the wikiMediaWiki 1.36.0https://www.liblfds.org/mediawiki/index.php?title=r7.1.1:Typedef_test_pal_thread_return_t&diff=1216&oldid=prevAdmin: 1 revision imported2017-02-17T20:16:54Z<p>1 revision imported</p>
<p><b>New page</b></p><div>{{DISPLAYTITLE:typedef test_pal_thread_return_t}}<br />
==Source File==<br />
└───test<br />
└───src<br />
└───porting_abstraction_layer_operating_system.h<br />
<br />
==Typedef==<br />
typedef [type] test_pal_thread_return_t;<br />
<br />
==Optionality==<br />
This typedef is mandatory.<br />
<br />
==Notes==<br />
When a thread function returns, it returns a value to the OS. This typedef is the type of than return value.<br />
<br />
If we look at the Windows thread function prototype;<br />
<br />
DWORD WINAPI ThreadProc( _In_ LPVOID lpParameter );<br />
<br />
We see the return type is ''DWORD''.<br />
<br />
(The ''WINAPI'' part is actually a compiler directive and is handled in the abstraction layer by the ''[[r7.1.1:define TEST_PAL_CALLING_CONVENTION|TEST_PAL_CALLING_CONVENTION]]'' define.)<br />
<br />
==Example==<br />
typedef DWORD test_pal_thread_state_t;<br />
<br />
==See Also==<br />
* [[r7.1.1:Porting Guide (test)|Porting Guide (test)]]</div>Admin