<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Sorry for the mistake. The correct expression to check if the
task is running is:</p>
<p> <b>task->state == TASK_RUNNING</b></p>
<p>Also, as Bjorn stated, is_current_running() can be used for
checking the current task.</p>
<p><br>
</p>
<p>Mahir<br>
</p>
<br>
<div class="moz-cite-prefix">On 10/27/2016 08:12 PM,
<a class="moz-txt-link-abbreviated" href="mailto:litmus-dev-request@lists.litmus-rt.org">litmus-dev-request@lists.litmus-rt.org</a> wrote:<br>
</div>
<blockquote
cite="mid:mailman.19060.1477591941.6659.litmus-dev@lists.litmus-rt.org"
type="cite">
<pre wrap="">In latest version of LITMUS, whether a task is running or not can be
checked by:
<b class="moz-txt-star"><span class="moz-txt-tag">*</span>task->state == IS_RUNNING<span class="moz-txt-tag">*</span></b></pre>
</blockquote>
<br>
</body>
</html>