<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>zdravim vsechny,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>narazil jsem na problem v testu
condvar1:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>stejne jako v rade dalsich je zde promenna
'threads_running' chranena</FONT></DIV>
<DIV><FONT face=Arial size=2>mutexem 'threads_running_mtx' a mne se zda ze tento
mutex</FONT></DIV>
<DIV><FONT face=Arial size=2>je naposledy odemcen na konci makra:</FONT></DIV>
<DIV><FONT face=Arial size=2>cond_wait_mutex_verbose (threads_running >
0, threads_running_mtx, threads_running);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>pak uz se vi ze vsechna pracovni vlakna zkoncila a
</FONT><FONT face=Arial size=2>test potom vsechny joinuje,
nasleduje:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>// clean up<BR> mutex_unlock (&
threads_running_mtx); .... sporny radek
(*)<BR> mutex_destroy (& threads_running_mtx);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>zda se mi ze odemceni jiz odemceneho mutexu je
chyba a nas kernel proto zavola panic()</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>myslim si ze by korektni chovani nastalo po
odstraneni radku (*)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Vlastimil Mencik</FONT></DIV>
<DIV><FONT face=Arial size=2> </DIV>
<DIV><BR></DIV></FONT></BODY></HTML>