Mercurial > hg > orthanc
diff OrthancServer/main.cpp @ 3608:7ae553d9c366 storage-commitment
created DicomUserConnection::RequestStorageCommitment()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 20 Jan 2020 18:44:47 +0100 |
parents | d0ecb355db33 |
children | c1e2b91c2ab4 |
line wrap: on
line diff
--- a/OrthancServer/main.cpp Fri Jan 17 15:56:02 2020 +0100 +++ b/OrthancServer/main.cpp Mon Jan 20 18:44:47 2020 +0100 @@ -97,8 +97,10 @@ ServerContext& server_; // TODO - Remove this - static void Toto() + static void Toto(std::string* t) { + std::auto_ptr<std::string> tt(t); + printf("Sleeping\n"); boost::this_thread::sleep(boost::posix_time::milliseconds(100)); printf("Connect back\n"); @@ -110,7 +112,7 @@ a.push_back("a"); b.push_back("b"); a.push_back("c"); b.push_back("d"); - scu.ReportStorageCommitment("transaction", a, b, c, d); + scu.ReportStorageCommitment(tt->c_str(), a, b, c, d); //scu.ReportStorageCommitment("transaction", a, b, a, b); /** @@ -136,7 +138,7 @@ { // TODO - Enqueue a Storage commitment job - boost::thread t(Toto); + boost::thread t(Toto, new std::string(transactionUid)); } };