lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [task #6683] Document lwIPs thread safety requirements


From: Simon Goldschmidt
Subject: [lwip-devel] [task #6683] Document lwIPs thread safety requirements
Date: Mon, 16 Apr 2007 14:08:55 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3

Follow-up Comment #8, task #6683 (project lwip):

>but sys_mbox_post can be a problem: OS-provided mailboxes may not be
interrupt-safe - they may only be intended to be task-safe.

>because posting to a mailbox can cause a task switch

Good point... If posting to a mailbox should always succeed, other tasks
might have to run until there is free space in the mailbox. But eCos is
designed to have DSRs, while e.g. µC/OS is not. In µC/OS (as in other
OSes), there is a function like mbox_trypost().

I think whether mbox posting can be used from interrupt context or not is up
to the user to decide. After all, the 'user' is still a developer who should
know it's system...

Involving mem_free() (and thus, waiting for a semaphore) waits (and
context-switches) on _every_ OS, so at least TX-interrupt must not call
pbuf_free() with the current code...

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?6683>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

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