On Tue May 12, 2015 at 14:46:55 +0800, watermirror wrote:
> hi.
> in the Thread_object::invoke, it call Thread::do_ipc like this:
> 
> 
>       ct->do_ipc(f->tag(), partner, partner, have_rcv, sender,
>                  f->timeout(), f, rights);
> 
> 
> 
> the second parameter's type is Thread*.
> 
> 
> but the Thread::do_ipc's implemention is like this:
> 
> 
> Thread::do_ipc(L4_msg_tag const &tag, bool have_send, Thread *partner,
>                bool have_receive, Sender *sender,
>                L4_timeout_pair t, Syscall_frame *regs,
>                L4_fpage::Rights rights)
> {...}
> 
> 
> 
> 
> 
> the second parameter's type is bool.
> 
> 
> is there anything wrong with the code, or i have make some mistakes?

The pointer will be converted to bool, i.e. have_send is true when
patner is not null.




Adam
-- 
Adam                 a...@os.inf.tu-dresden.de
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/

_______________________________________________
l4-hackers mailing list
l4-hackers@os.inf.tu-dresden.de
http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers

Reply via email to