X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=sched.h;h=4695da05040d1934e0c23a12db9bb14c7e9f799c;hb=5f04eea3b1c9a41417ed63e5348b2aabca5542fa;hp=d7b90a45b7b2e10947a03ed610c649181f448b0a;hpb=abfb661f35e99e99c09a94d84839356d905af080;p=paraslash.git diff --git a/sched.h b/sched.h index d7b90a45..4695da05 100644 --- a/sched.h +++ b/sched.h @@ -1,8 +1,4 @@ -/* - * Copyright (C) 2006-2014 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ +/* Copyright (C) 2006 Andre Noll , see file COPYING. */ /** \file sched.h Sched and task structures and exported symbols from sched.c. */ @@ -17,10 +13,10 @@ * called after the select call. */ struct sched { - /** Initial value before any pre_select call. */ - struct timeval default_timeout; - /** The current timeout for the upcoming select call. */ - struct timeval select_timeout; + /** Initial value (in milliseconds) before any pre_select call. */ + int default_timeout; + /** The timeout (also in milliseconds) for the next select call. */ + int timeout; /** fds that should be watched for readability. */ fd_set rfds; /** fds that should be watched for writability. */ @@ -28,7 +24,7 @@ struct sched { /** Highest numbered file descriptor in any of the above fd sets. */ int max_fileno; /** If non-NULL, use this function instead of para_select. */ - int (*select_function)(int, fd_set *, fd_set *, struct timeval *); + int (*select_function)(int, fd_set *, fd_set *, int timeout); /** Tasks which have been registered to the scheduler. */ struct list_head task_list; };