Home
last modified time | relevance | path

Searched refs:critical_section (Results 1 – 2 of 2) sorted by relevance

/ThreadX-v6.3.0/ports/win32/vs_2019/src/
Dtx_thread_schedule.c163 void _tx_win32_critical_section_obtain(TX_WIN32_CRITICAL_SECTION *critical_section) in _tx_win32_critical_section_obtain() argument
170 if (critical_section -> tx_win32_critical_section_owner == GetCurrentThreadId()) in _tx_win32_critical_section_obtain()
174 critical_section -> tx_win32_critical_section_nested_count++; in _tx_win32_critical_section_obtain()
183 …while (WaitForSingleObject(critical_section -> tx_win32_critical_section_mutex_handle, 3) != WAIT_… in _tx_win32_critical_section_obtain()
190 critical_section -> tx_win32_critical_section_nested_count = 1; in _tx_win32_critical_section_obtain()
193 critical_section -> tx_win32_critical_section_owner = GetCurrentThreadId(); in _tx_win32_critical_section_obtain()
198 void _tx_win32_critical_section_release(TX_WIN32_CRITICAL_SECTION *critical_section) in _tx_win32_critical_section_release() argument
203 if (critical_section -> tx_win32_critical_section_owner == GetCurrentThreadId()) in _tx_win32_critical_section_release()
207 if (critical_section -> tx_win32_critical_section_nested_count) in _tx_win32_critical_section_release()
211 critical_section -> tx_win32_critical_section_nested_count--; in _tx_win32_critical_section_release()
[all …]
/ThreadX-v6.3.0/ports/win32/vs_2019/inc/
Dtx_port.h332 void _tx_win32_critical_section_obtain(TX_WIN32_CRITICAL_SECTION *critical_section);
333 void _tx_win32_critical_section_release(TX_WIN32_CRITICAL_SECTION *critical_section);
334 void _tx_win32_critical_section_release_all(TX_WIN32_CRITICAL_SECTION *critical_section);