Browse Source

Work on task #14780: Add debug helper asserts to ensure threading/locking requirements are met

Add note embedded systems should check about NOT being in an interrupt context
master
Dirk Ziegelmeier 8 years ago
parent
commit
d20a35a72c
  1. 2
      ports/unix/port/sys_arch.c
  2. 2
      ports/win32/sys_arch.c

2
ports/unix/port/sys_arch.c

@ -205,6 +205,8 @@ void sys_mark_tcpip_thread(void)
void sys_check_core_locking(void)
{
/* Embedded systems should check we are NOT in an interrupt context here */
if (lwip_tcpip_thread_id != 0) {
pthread_t current_thread_id = pthread_self();

2
ports/win32/sys_arch.c

@ -464,6 +464,8 @@ void sys_mark_tcpip_thread(void)
void sys_check_core_locking(void)
{
/* Embedded systems should check we are NOT in an interrupt context here */
if (lwip_tcpip_thread_id != 0) {
DWORD current_thread_id = GetCurrentThreadId();

Loading…
Cancel
Save