Commit 4aeb441a authored by apetro's avatar apetro
Browse files

references #1605: PVVS API manager dispatch events revised


git-svn-id: file:///tmp/cmsos_migration/cmsos.svndb/releases/baseline10/trunk@17830 c528359e-2999-456a-ae53-7ba8edf254b3
parent ad71fb91
...@@ -18,9 +18,9 @@ ...@@ -18,9 +18,9 @@
#define PSXSAPI_VERSION_MAJOR 2 #define PSXSAPI_VERSION_MAJOR 2
#define PSXSAPI_VERSION_MINOR 0 #define PSXSAPI_VERSION_MINOR 0
#define PSXSAPI_VERSION_PATCH 1 #define PSXSAPI_VERSION_PATCH 2
// If any previous versions available E.g. #define PSXSAPI_PREVIOUS_VERSIONS "3.8.0,3.8.1" // If any previous versions available E.g. #define PSXSAPI_PREVIOUS_VERSIONS "3.8.0,3.8.1"
#define PSXSAPI_PREVIOUS_VERSIONS "2.0.0" #define PSXSAPI_PREVIOUS_VERSIONS "2.0.0,2.0.1"
// //
......
...@@ -211,7 +211,7 @@ xoap::MessageReference psx::sapi::ApplicationService::onRequest(xoap::MessageRef ...@@ -211,7 +211,7 @@ xoap::MessageReference psx::sapi::ApplicationService::onRequest(xoap::MessageRef
} }
pthread_mutex_lock( &(this->lock_)); //pthread_mutex_lock( &(this->lock_));
time_t timeout = 30; // seconds timeout time_t timeout = 30; // seconds timeout
...@@ -233,7 +233,7 @@ xoap::MessageReference psx::sapi::ApplicationService::onRequest(xoap::MessageRef ...@@ -233,7 +233,7 @@ xoap::MessageReference psx::sapi::ApplicationService::onRequest(xoap::MessageRef
return reply; return reply;
} }
pthread_mutex_unlock( &(this->lock_)); //pthread_mutex_unlock( &(this->lock_));
//std::cout << "Going to wait.. " << std::endl; //std::cout << "Going to wait.. " << std::endl;
psx::sapi::Result * result = this->wait(request, timeout); psx::sapi::Result * result = this->wait(request, timeout);
...@@ -677,10 +677,11 @@ void psx::sapi::ApplicationService::run() ...@@ -677,10 +677,11 @@ void psx::sapi::ApplicationService::run()
// Wait 100 ms // Wait 100 ms
sec = 0; sec = 0;
usec = 10000; usec = 10000;
pthread_yield(); //pthread_yield();
pthread_mutex_lock( &(this->mutex_)); //pthread_mutex_lock( &(this->mutex_));
dispatch(sec, usec); dispatch(sec, usec);
pthread_mutex_unlock( &(this->mutex_)); //pthread_mutex_unlock( &(this->mutex_));
//std::cout << "done dispatch" << std::endl;
//pthread_yield(); //pthread_yield();
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment