[Click] click_threads()

Eddie Kohler kohler at cs.ucla.edu
Mon Oct 13 23:30:28 EDT 2008


__MTCLICK__ is kind of an old name; we prefer HAVE_MULTITHREAD these days. 
But I'm not sure bsdmodule supports multithreaded Click at all, simply saying 
"click_master = new Master(1);" would suffice.

Eddie


Nikola Knežević wrote:
> On 8 Sep 2008, at 19:38 , Eddie Kohler wrote:
> 
>> Old code.  The current code uses something like  
>> click_parm(CLICKPARM_THREADS).
> 
> Thanks.
> 
> bsdmodule still has this:
> #if __MTCLICK__
>    click_master = new Master(click_threads());
>    if (smp_num_cpus != NUM_CLICK_CPUS)
>      click_chatter("warning: click compiled for %d cpus, machine  
> allows %d",
> 	          NUM_CLICK_CPUS, smp_num_cpus);
> #else
>    click_master = new Master(1);
> #endif
> 
> 
> is __MTCLICK__ also deprecated? If yes, I will remove this from my  
> code...
> 
> Cheers,
> Nikola
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click



More information about the click mailing list