Revision 1530

branches/threaded2merge/src/linad99/thread_stuff.cpp (revision 1530)
1 1
#include <admodel.h>
2 2
#include <cstddef>
3 3
#include <cstring>
4
#include <thread>
4
//#include <thread>
5 5
#include "adthread.h"
6 6
#if !defined(OPT_LIB)
7 7
#  if !defined(CHK_ID_STRING)
......
273 273
{
274 274
  if (stransfer_buffer[s1][s2]== 0)
275 275
  {
276
    cerr << "Check the logic of this if we get here" << endl;
277
    ad_exit(1);
276 278
    //transfer_buffer[s1][s2]=new char[bs];
277 279
    //scurrent_bptr[s1][s2]=transfer_buffer[s1][s2];
278 280
    stransfer_buffer[s1][s2]=new char[bs];
......
996 998
  memcpy(value, &source[buffer.size() - size], size);
997 999
  buffer.erase(buffer.size() - size, size);
998 1000
}
1001

  
1002
/*
999 1003
adthread::adthread()
1000 1004
{
1001 1005
}
......
1013 1017
{
1014 1018
  cout << __func__ << ':' << __LINE__ << endl;
1015 1019
}
1020
*/
branches/threaded2merge/src/linad99/adthread.h (revision 1530)
57 57
  pthread_cond_t condition;
58 58
  std::string buffer;
59 59
};
60

  
61
/*
60 62
class adthread
61 63
{
62 64
public:
......
73 75
private:
74 76
  adthread_buffer buffer;
75 77
};
78
*/
79

  
76 80
class adpthread_manager
77 81
{
78 82
private:

Also available in: Unified diff