diff options
Diffstat (limited to 'pfinet/timer-emul.c')
-rw-r--r-- | pfinet/timer-emul.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pfinet/timer-emul.c b/pfinet/timer-emul.c index f1686741..701a4164 100644 --- a/pfinet/timer-emul.c +++ b/pfinet/timer-emul.c @@ -26,6 +26,7 @@ #include <linux/sched.h> #include <error.h> #include <string.h> +#include <pthread.h> #include "pfinet.h" long long root_jiffies; @@ -40,6 +41,8 @@ timer_function (void *this_is_a_pointless_variable_with_a_rather_long_name) mach_port_t recv; int wait = 0; + pthread_setname_np (pthread_self (), "timer"); + recv = mach_reply_port (); timer_thread = mach_thread_self (); |