lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #20842] unix sys_arch_protect faulty


From: Frédéric Bernon
Subject: [lwip-devel] [bug #20842] unix sys_arch_protect faulty
Date: Tue, 21 Aug 2007 07:21:48 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6

Follow-up Comment #3, bug #20842 (project lwip):

If the mutex was created with PTHREAD_MUTEX_RECURSIVE attribute with a
pthread_mutex_init, I think it will be better than using the macro
PTHREAD_MUTEX_INITIALIZER. In this case, you could have :

sys_prot_t sys_arch_protect(void)
{ return pthread_mutex_lock(&lwprot_mutex);
}

Or even a define...

http://www.opengroup.org/onlinepubs/007908799/xsh/pthread_mutex_init.html
http://www.opengroup.org/onlinepubs/007908799/xsh/pthread_mutex_lock.html


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?20842>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

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