Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/utest/configs/components/lwip.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ CONFIG_RT_UTEST_LWIP_TCP_PORT=1234
CONFIG_RT_UTEST_LWIP_UDP_PORT=1235
CONFIG_RT_UTEST_LWIP_TEST_URL="www.rt-thread.org"
CONFIG_RT_UTEST_LWIP_TEST_ADDR="180.163.146.111"
CONFIG_BSP_DRV_EMAC=y
CONFIG_BSP_DRV_EMAC=y
# The tcpip thread runs lwIP API callbacks on a debug (-O0) build; the 1024
# default is not enough once the mailbox handoff sits in its receive path.
CONFIG_RT_LWIP_TCPTHREAD_STACKSIZE=2048
5 changes: 4 additions & 1 deletion .github/utest/configs/components/sal.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ CONFIG_RT_USING_CI_ACTION=y

CONFIG_RT_UTEST_TC_USING_SAL=y
CONFIG_RT_LWIP_NETIF_LOOPBACK=y
CONFIG_BSP_DRV_EMAC=y
CONFIG_BSP_DRV_EMAC=y
# The tcpip thread runs lwIP API callbacks on a debug (-O0) build; the 1024
# default is not enough once the mailbox handoff sits in its receive path.
CONFIG_RT_LWIP_TCPTHREAD_STACKSIZE=2048
1 change: 1 addition & 0 deletions .github/utest/configs/kernel/ipc.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ CONFIG_RT_UTEST_WORKQUEUE=y
CONFIG_RT_USING_SEMAPHORE=y
CONFIG_RT_USING_EVENT=y
CONFIG_RT_USING_MESSAGEQUEUE=y
CONFIG_RT_USING_MESSAGEQUEUE_PRIORITY=y
CONFIG_RT_USING_SIGNALS=y
CONFIG_RT_USING_MUTEX=y
CONFIG_RT_USING_MAILBOX=y
Expand Down
1 change: 1 addition & 0 deletions include/rtdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,7 @@ struct rt_ipc_object
struct rt_object parent; /**< inherit from rt_object */

rt_list_t suspend_thread; /**< threads pended on this resource */
rt_atomic_t in_flight; /**< in-flight handoff reclaims referencing this object */
};

/**
Expand Down
3 changes: 3 additions & 0 deletions include/rtthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,9 @@ rt_err_t rt_susp_list_resume_all_irq(rt_list_t *susp_list,
rt_err_t rt_thread_suspend_to_list(rt_thread_t thread, rt_list_t *susp_list, int ipc_flags, int suspend_flag);
/* only for a suspended thread, and caller must hold the scheduler lock */
rt_err_t rt_susp_list_enqueue(rt_list_t *susp_list, rt_thread_t thread, int ipc_flags);
#if defined(RT_USING_MAILBOX) || defined(RT_USING_MESSAGEQUEUE)
void rt_ipc_handoff_thread_cleanup(rt_thread_t thread);
#endif /* RT_USING_MAILBOX || RT_USING_MESSAGEQUEUE */

/**
* @addtogroup group_semaphore Semaphore
Expand Down
Loading
Loading