/[dynamips]/upstream/dynamips-0.2.6-RC1/ptask.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /upstream/dynamips-0.2.6-RC1/ptask.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

upstream/dynamips-0.2.5/ptask.c revision 1 by dpavlin, Sat Oct 6 16:01:44 2007 UTC upstream/dynamips-0.2.6-RC1/ptask.c revision 2 by dpavlin, Sat Oct 6 16:03:58 2007 UTC
# Line 25  Line 25 
25  static pthread_t ptask_thread;  static pthread_t ptask_thread;
26  static pthread_mutex_t ptask_mutex = PTHREAD_MUTEX_INITIALIZER;  static pthread_mutex_t ptask_mutex = PTHREAD_MUTEX_INITIALIZER;
27  static ptask_t *ptask_list = NULL;  static ptask_t *ptask_list = NULL;
28  static u_int ptask_sleep_time = 20;  static u_int ptask_sleep_time = 10;
29  static ptask_id_t ptask_current_id = 0;  static ptask_id_t ptask_current_id = 0;
30    
31  #define PTASK_LOCK() pthread_mutex_lock(&ptask_mutex)  #define PTASK_LOCK() pthread_mutex_lock(&ptask_mutex)

Legend:
Removed from v.1  
changed lines
  Added in v.2

  ViewVC Help
Powered by ViewVC 1.1.26