Hi Padma,

On 2015年01月09日 02:13, Padma Jayasankar wrote:
> Hi,
>   If i want to do a set of actions for more than one events like 
> EventLinkAdd,EventLinkDelete, how should i specify that in @set_ev_cls().. 
> Please clarify
> 
> For one event, v have to use like this.
> @set_ev_cls(event.EventLinkAdd)
> def proc()
> 
>  But if i want to do the proc for EventLinkDelete too, how to specify it?
> Please clarify.

You can set multiple events "list" as follows.

    @set_ev_cls([event.EventLinkAdd,
                 event.EventLinkDelete,
                 ...
                 ...
                 ], MAIN_DISPATCHER)
    def proc()

Thanks

> 
> Thanks and Regards,
> padma v
> 
> 
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming! The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net
> 
> 
> 
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
> 

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to