Revision 1231

branches/threaded2merge/src/linad99/adthread.h (revision 1231)
84 84
  pthread_cond_t ** smcondition;
85 85
  pthread_t * thread1;  /* thread variables */
86 86

  
87
  void send_dvector_to_slave(const dvector &x,int sno);
88 87
  void send_dvector(const dvector &x,int sno);
89
  void send_dvector_to_master(const dvector &x,int sno);
90
  dvector get_dvector_from_slave(int sno);
91 88
  dvector get_dvector(int sno);
92
  dvector get_dvector_from_master(int sno);
93
  dvar_vector get_dvar_vector_from_slave(int sno);
94 89
  dvar_vector get_dvar_vector(int sno);
95
  dvar_vector get_dvar_vector_from_master(int sno);
96
  void send_dvar_vector_to_slave(const dvar_vector &x,int sno);
97 90
  void send_dvar_vector(const dvar_vector &x,int sno);
98 91
  void send_dvar_vector_to_master(const dvar_vector &x,int sno);
99
  double get_double_from_master_nl(int sno);
100 92
  void writebuffer(const void *x,int nbytes,int sno);
101 93
  void readbuffer(const void *x,int nbytes,int sno);
102 94
  void pthread_join_all(void);
......
117 109
  void adjoint_get_dvariable_from_slave(void);
118 110
  void adjoint_get_dvar_vector_from_master(void);
119 111
  void adjoint_send_dvar_vector_to_slave(void);
120
  void send_dvar_matrix_to_slave(const dvar_matrix &x,int sno);
121 112
  void adjoint_send_dvar_matrix_to_slave(void);
122 113
  void adjoint_get_dvar_matrix_from_master(void);
123 114
  dvar_matrix get_dvar_matrix_from_master(int sno);
......
134 125
  void send_imatrix(const imatrix &x,int sno);
135 126
  void send_ivector(const ivector &x,int sno);
136 127
  void adjoint_send_dvar_matrix_to_master(void);
137
  void send_int_to_slave(int, int);
138 128
  void send_int(int, int);
139 129
  void send_pointer(void*, int);
140
  void send_int_to_master(int, int);
141
  int get_int_from_master(int);
142 130
  int get_int(int);
143 131
  void * get_pointer(int);
144
  int get_int_from_slave(int);
145 132
  void send_dvariable_to_slave(const prevariable &x,int sno);
146 133
  void send_dvariable(const prevariable &x,int sno);
147 134
  void send_dvariable_to_master(const prevariable &x,int sno);
148
  dvariable get_dvariable_from_slave(int sno);
149 135
  dvariable get_dvariable(int sno);
150
  dvariable get_dvariable_from_master(int sno);
151 136
  void adjoint_send_dvariable_to_slave(void);
152
  void send_double_to_master(const double&, int);
153 137
  void send_double(const double&, int);
154
  void send_double_to_slave(const double &x,int sno);
155
  double get_double_from_slave(int sno);
156 138
  double get_double(int sno);
157
  double get_double_from_master(int sno);
158 139

  
159 140
  void send_adstring(const adstring &x,int sno);
160 141
  adstring get_adstring(int sno);
branches/threaded2merge/src/linad99/thread_stuff.cpp (revision 1231)
498 498
  send_id_string_to_slave("TY",sno);
499 499
  writebuffer(&x,sizeof(double),sno);
500 500
}
501
void adpthread_manager::send_double_to_slave(const double &x,int sno)
502
{
503
  send_id_string_to_slave("TY",sno);
504
  writebuffer(&x,sizeof(double),sno);
505
}
506
void adpthread_manager::send_int_to_slave(int x,int sno)
507
{
508
  send_id_string_to_slave("RY",sno);
509
  writebuffer(&x,sizeof(int),sno);
510
}
511

  
512 501
void adpthread_manager::send_int(int x,int sno)
513 502
{
514 503
  send_id_string_to_slave("ES",sno);
515 504
  writebuffer(&x,sizeof(int),sno);
516 505
}
517
void adpthread_manager::send_int_to_master(int x,int sno)
518
{
519
  send_id_string_to_slave("YY",sno);
520
  writebuffer(&x,sizeof(int),sno);
521
}
522
int adpthread_manager::get_int_from_master(int sno)
523
{
524
  verify_id_string_from_master("RY",sno);
525
  int x;
526
  readbuffer(&x,sizeof(int),sno);
527
  return x;
528
}
529 506
int adpthread_manager::get_int(int sno)
530 507
{
531 508
  verify_id_string_from_master("ES",sno);
......
533 510
  readbuffer(&x,sizeof(int),sno);
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff