View | Details | Raw Unified | Return to bug 25300
Collapse All | Expand All

(-)lib/libc_r/uthread/uthread_init.c Wed Feb 21 21:36:59 2001 (-1 / +5 lines)
Lines 336-342 Link Here
336
               mib[1] = KERN_CLOCKRATE;
336
               mib[1] = KERN_CLOCKRATE;
337
               len = sizeof (struct clockinfo);
337
               len = sizeof (struct clockinfo);
338
               if (sysctl(mib, 2, &clockinfo, &len, NULL, 0) == 0)
338
               if (sysctl(mib, 2, &clockinfo, &len, NULL, 0) == 0)
339
                       _clock_res_usec = clockinfo.tick;
339
                       /* NPMOD - use larger of clockinfo.tick or
340
                          CLOCK_RES_USEC (=10ms) for the uthreads
341
                          base tick (pavel - 21-Feb-2001):*/
342
                       _clock_res_usec = (clockinfo.tick > CLOCK_RES_USEC) ? 
343
                         clockinfo.tick : CLOCK_RES_USEC;
340
344
341
               /* Get the table size: */
345
               /* Get the table size: */
342
               if ((_thread_dtablesize = getdtablesize()) < 0) {
346
               if ((_thread_dtablesize = getdtablesize()) < 0) {

Return to bug 25300