<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE type=text/css>
BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em}
</STYLE>
<!-- flashmail style begin -->
<STYLE type=text/css>
body {border-width:0;margin:0}
img {border:0;margin:0;padding:0}
</STYLE>
<BASE target=_blank><!-- flashmail style end -->
<META name=GENERATOR content="MSHTML 11.00.10586.494"></HEAD>
<BODY 
style="BORDER-LEFT-WIDTH: 0px; FONT-SIZE: 10.5pt; FONT-FAMILY: times new roman; BORDER-RIGHT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; COLOR: #000000; MARGIN: 12px; LINE-HEIGHT: 1.5; BORDER-TOP-WIDTH: 0px" 
marginheight="0" marginwidth="0"><STATIONERY>
<DIV>Hello all:</DIV>
<DIV> </DIV>
<DIV>I have noticed that you have rewritten the function 'is_running(t)' as 
'is_current_running()' in the latest version. But how can we get one 
specific task's condition without the input to the funtion? I am confiused 
about the meaning of 'current'. </DIV>
<DIV> </DIV>
<DIV>#define 
is_current_running()                    
\<BR>        ((current)->state == 
TASK_RUNNING ||    
\<BR>         preempt_count() & 
PREEMPT_ACTIVE)</DIV>
<DIV> </DIV>
<DIV>#define 
is_running(t)                   
\<BR>        ((t)->state == TASK_RUNNING 
||  \<BR>         
task_thread_info(t)->preempt_count & PREEMPT_ACTIVE)<BR></DIV>
<DIV> </DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana; COLOR: #c0c0c0">
<DIV align=left>2016-07-28</DIV>
<HR id=SignNameHR 
style="BORDER-TOP: #c0c0c0 1px solid; HEIGHT: 1px; BORDER-RIGHT: 0px; WIDTH: 122px; BORDER-BOTTOM: 0px; BORDER-LEFT: 0px" 
align=left>
<SPAN id=_FlashSignName>shijunjie92</SPAN> </DIV></STATIONERY></BODY></HTML>