Revision 1233 branches/threaded2merge/src/linad99/adthread.h

adthread.h (revision 1233)
52 52
  static void set_slave_number(int n) { slave_number=n; }
53 53
  static void set_old_buffer_flag(int n) { old_buffer_flag=n;}
54 54

  
55
  /*
56
  char ** transfer_buffer;
57
  char ** current_bptr;
58
  char ** buffend;
59
  */
60 55
  int nslaves;
61 56
  int initial_buffer_size;
62 57
  int ngroups;
......
70 65
  ivector buffer_size;
71 66
  pthread_mutex_t copy_mutex;
72 67
  pthread_mutex_t start_mutex;
73
  pthread_mutex_t * smutex;
74
  pthread_cond_t * scondition;
75
  pthread_cond_t * mcondition;
68
  pthread_mutex_t* smutex;
69
  pthread_cond_t* scondition;
70
  pthread_cond_t* mcondition;
76 71
  imatrix sbuffer_size;
77 72
  char*** stransfer_buffer;
78 73
  char*** scurrent_bptr;
......
84 79
  pthread_cond_t ** smcondition;
85 80
  pthread_t * thread1;  /* thread variables */
86 81

  
87
  void send_dvector(const dvector &x,int sno);
82
  void attach_code(pthreadfun pf);
83
  void check_buffer_size(int, int,int);
84
  void check_buffer_size_read(int, int,int);
85
  void create_all(pthreadfun pf,new_thread_data * ptr);
86
  void create_all(void * ptr);
87
  void pthread_join_all(void);
88
  void writebuffer(const void *x,int nbytes,int sno);
89
  void readbuffer(const void *x,int nbytes,int sno);
90
  void send_id_string(const char * s,int sno);
91
  void verify_id_string(const char * s,int sno);
92
  long int get_offset(int sno);
93
  double get_double(int sno);
94
  int get_int(int);
88 95
  dvector get_dvector(int sno);
96
  dmatrix get_dmatrix(int sno);
97
  imatrix get_imatrix(int sno);
98
  dvariable get_dvariable(int sno);
99
  ivector get_ivector(int sno);
100
  adstring get_adstring(int sno);
89 101
  dvar_vector get_dvar_vector(int sno);
102
  dvar_matrix get_dvar_matrix(int sno);
103
  void send_double(const double&, int);
104
  void send_int(int, int);
105
  void send_dvector(const dvector &x,int sno);
106
  void send_dmatrix(const dmatrix &x,int sno);
107
  void send_imatrix(const imatrix &x,int sno);
108
  void send_dvariable(const prevariable &x,int sno);
109
  void send_ivector(const ivector &x,int sno);
110
  void send_adstring(const adstring &x,int sno);
90 111
  void send_dvar_vector(const dvar_vector &x,int sno);
112
  void send_dvar_matrix(const dvar_matrix &x,int sno);
113
  void adjoint_get_dvariable(void);
114
  void adjoint_get_dvar_vector(void);
115
  void adjoint_get_dvar_matrix(void);
116
  void adjoint_send_dvariable(void);
117
  void adjoint_send_dvar_vector(void);
118
  void adjoint_send_dvar_matrix(void);
119

  
120
  void write_lock_buffer(int sno);
121
  void write_unlock_buffer(int sno);
122
  void cwrite_lock_buffer(int sno);
123
  void cwrite_unlock_buffer(int sno);
124
  void adjoint_adwrite_lock_buffer_1(void);
125
  void adjoint_adwrite_unlock_buffer_1(void);
126
  void adjoint_adwrite_lock_buffer_2(void);
127
  void adjoint_adwrite_unlock_buffer_2(void);
128

  
129
  void read_lock_buffer(int sno);
130
  void read_unlock_buffer(int sno);
131
  void cread_lock_buffer(int sno);
132
  void cread_unlock_buffer(int sno);
133
  void adjoint_adread_lock_buffer_1(void);
134
  void adjoint_adread_unlock_buffer_1(void);
135
  void adjoint_adread_lock_buffer_2(void);
136
  void adjoint_adread_unlock_buffer_2(void);
137
/*
91 138
  void send_dvar_vector_to_master(const dvar_vector &x,int sno);
92
  void writebuffer(const void *x,int nbytes,int sno);
93
  void readbuffer(const void *x,int nbytes,int sno);
94
  void pthread_join_all(void);
95 139
  void create_all(pthreadfun pf,void * ptr);
96
  void create_all(pthreadfun pf,new_thread_data * ptr);
97
  void attach_code(pthreadfun pf);
98
  void create_all(void * ptr);
99
  void check_buffer_size(int, int,int);
100
  void check_buffer_size_read(int, int,int);
101 140
  void memcpy(const double &x,int sno);
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff