ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/ether_unix.cpp
(Generate patch)

Comparing BasiliskII/src/Unix/ether_unix.cpp (file contents):
Revision 1.6 by cebix, 2002-01-15T14:58:37Z vs.
Revision 1.7 by cebix, 2002-02-07T16:10:55Z

# Line 79 | Line 79 | static bool start_thread(void)
79                  return false;
80          }
81  
82 <        pthread_attr_init(&ether_thread_attr);
83 < #if defined(_POSIX_THREAD_PRIORITY_SCHEDULING)
84 <        if (geteuid() == 0) {
85 <                pthread_attr_setinheritsched(&ether_thread_attr, PTHREAD_EXPLICIT_SCHED);
86 <                pthread_attr_setschedpolicy(&ether_thread_attr, SCHED_FIFO);
87 <                struct sched_param fifo_param;
88 <                fifo_param.sched_priority = (sched_get_priority_min(SCHED_FIFO) + sched_get_priority_max(SCHED_FIFO)) / 2 + 1;
89 <                pthread_attr_setschedparam(&ether_thread_attr, &fifo_param);
90 <        }
91 < #endif
92 <
82 >        Set_pthread_attr(&ether_thread_attr, 1);
83          thread_active = (pthread_create(&ether_thread, &ether_thread_attr, receive_func, NULL) == 0);
84          if (!thread_active) {
85                  printf("WARNING: Cannot start Ethernet thread");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines