~ubuntu-branches/debian/sid/gmsh/sid

« back to all changes in this revision

Viewing changes to contrib/onelab2/OnelabDatabase.cpp

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2015-08-26 22:45:27 UTC
  • mfrom: (1.3.25)
  • Revision ID: package-import@ubuntu.com-20150826224527-wiqnz3dwz6ap8tty
Tags: 2.10.1+dfsg1-1
* [4c450d1] Update d/watch.
* [90ca918] Imported Upstream version 2.10.1+dfsg1. (Closes: #793245)
* [af26665] Use any-arch instead of list of archs.
* [e94c6d2] Refresh patches.
* [6ab417f] Update d/copyright.

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
    }
88
88
  }
89
89
}
90
 
#ifndef WIN32
91
 
void *OnelabDatabase_server(void *arg)
92
 
#else
93
 
DWORD WINAPI OnelabDatabase_server(LPVOID arg)
94
 
#endif
95
 
{
96
 
  OnelabServer::instance()->Run();
97
 
}
98
90
 
99
91
void OnelabDatabase::finalize()
100
92
{
103
95
    pthread_join(_listenThread, NULL);
104
96
  }
105
97
  else {
106
 
    //TODO pthread_join(_serverThread, NULL);
107
 
  }
 
98
    OnelabServer::instance()->finalize();
 
99
  }
 
100
}
 
101
 
 
102
void solver_batch_cb(void *data)
 
103
{
 
104
  int num = (intptr_t)data;
 
105
  if(num < 0) return;
 
106
  std::string name = opt_solver_name(num, GMSH_GET, "");
 
107
  std::string exe = opt_solver_executable(num, GMSH_GET, "");
 
108
  std::string host = opt_solver_remote_login(num, GMSH_GET, "");
 
109
  if(exe.empty()){
 
110
    Msg::Error("Solver executable name not provided");
 
111
    return;
 
112
  }
 
113
 
 
114
  onelab::number n("0Metamodel/Batch", CTX::instance()->batch);
 
115
  n.setVisible(false);
 
116
  //onelab::server::instance()->set(n);
 
117
  // TODO
108
118
}