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

adthread.h (revision 1229)
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
  /*
55 56
  char ** transfer_buffer;
56 57
  char ** current_bptr;
57 58
  char ** buffend;
59
  */
58 60
  int nslaves;
59 61
  int initial_buffer_size;
60 62
  int ngroups;
......
72 74
  pthread_cond_t * scondition;
73 75
  pthread_cond_t * mcondition;
74 76
  imatrix sbuffer_size;
75
  char *** stransfer_buffer;
76
  char *** scurrent_bptr;
77
  char *** sbuffend;
77
  char*** stransfer_buffer;
78
  char*** scurrent_bptr;
79
  char*** sbuffend;
78 80
  imatrix smflag;
79 81
  imatrix ssflag;
80 82
  pthread_mutex_t ** ssmutex;
......
102 104
  void create_all(pthreadfun pf,new_thread_data * ptr);
103 105
  void attach_code(pthreadfun pf);
104 106
  void create_all(void * ptr);
105
  void check_buffer_size(int, int);
106 107
  void check_buffer_size(int, int,int);
107
  void check_buffer_size_read(int, int);
108 108
  void check_buffer_size_read(int, int,int);
109 109
  void memcpy(const double &x,int sno);
110
  void read_lock_buffer_slave(int sno);
111
  void write_lock_buffer_slave(int sno);
112
  void read_lock_buffer_master(int sno);
113
  void write_lock_buffer_master(int sno);
114
  void read_unlock_buffer_slave(int sno);
115
  void write_unlock_buffer_slave(int sno);
116
  void read_unlock_buffer_master(int sno);
117
  void write_unlock_buffer_master(int sno);
118 110
  void adjoint_slave_write_unlock(int sno);
119 111
  void adjoint_slave_write_lock(int sno);
120
  void adjoint_master_write_lock(int sno);
121 112
  void verify_id_string_from_master(const char * s,int sno);
122 113
  void send_id_string_to_slave(const char * s,int sno);
123 114
  void verify_id_string_from_slave(const char * s,int sno);
......
126 117
  void adjoint_get_dvariable_from_slave(void);
127 118
  void adjoint_get_dvar_vector_from_master(void);
128 119
  void adjoint_send_dvar_vector_to_slave(void);
129
  void adjoint_write_unlock_buffer_master(void);
130
  void adjoint_read_lock_buffer_master(void);
131
  void adjoint_read_lock_buffer_slave(void);
132
  void adjoint_write_unlock_buffer_slave(void);
133
  void adjoint_read_unlock_buffer_slave(void);
134
  void adjoint_read_unlock_buffer_master(void);
135
  void adjoint_write_lock_buffer_slave(void);
136
  void adjoint_write_lock_buffer_master(void);
137 120
  void send_dvar_matrix_to_slave(const dvar_matrix &x,int sno);
138 121
  void adjoint_send_dvar_matrix_to_slave(void);
139 122
  void adjoint_get_dvar_matrix_from_master(void);

Also available in: Unified diff