typedef test_pal_thread_return_t
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Source File
└───test └───src └───porting_abstraction_layer_operating_system.h
Typedef
typedef [type] test_pal_thread_return_t;
Optionality
This typedef is mandatory.
Notes
When a thread function returns, it returns a value to the OS. This typedef is the type of than return value.
If we look at the Windows thread function prototype;
DWORD WINAPI ThreadProc( _In_ LPVOID lpParameter );
We see the return type is DWORD.
(The WINAPI part is actually a compiler directive and is handled in the abstraction layer by the TEST_PAL_CALLING_CONVENTION define.)
Example
typedef DWORD test_pal_thread_state_t;