lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] The number of resources of a semaphore and MBOX


From: izumi
Subject: [lwip-users] The number of resources of a semaphore and MBOX
Date: Mon, 6 Oct 2003 17:51:02 +0900

Hello.

Supposing sys_mbox_post() is blocking-function, the following problem will occur
.
Where a message is filled in MBOX, when it blocks, it will lock, if application 
calls netconn_delete().
Although application-thread posts API_MSG_DELCONN and it is waiting for the repl
y from tcpip-thread, tcpip-thread is because it is waiting for mbox of a receivi
ng buffer to become empty.

The easy solution method of this problem is giving only the depth with which a m
essage's is not filled by MBOX.
(may be PBUF_POOL_SIZE)

# Isn't there any other smart solution method. ?

This is the question.
About the determination method of the number of resources of a semaphore and MBO
X, 
if there is an indicator, please let me know.

# Supposing sys_mbox_post() is non-block-function, pbuf-deamon will occur.

Bye.

Hideaki Izumi





reply via email to

[Prev in Thread] Current Thread [Next in Thread]