Threads testing package update
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665042 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/test/threads/ThreadsServer.cpp b/test/threads/ThreadsServer.cpp
index 1e3494c..f5bd665 100644
--- a/test/threads/ThreadsServer.cpp
+++ b/test/threads/ThreadsServer.cpp
@@ -23,33 +23,38 @@
// Your initialization goes here
}
- void threadOne(const int32_t sleep) {
+ int32_t threadOne(const int32_t sleep) {
// Your implementation goes here
printf("threadOne\n");
go2sleep(1, sleep);
+ return 1;
}
- void threadTwo(const int32_t sleep) {
+ int32_t threadTwo(const int32_t sleep) {
// Your implementation goes here
printf("threadTwo\n");
go2sleep(2, sleep);
+ return 1;
}
- void threadThree(const int32_t sleep) {
+ int32_t threadThree(const int32_t sleep) {
// Your implementation goes here
printf("threadThree\n");
go2sleep(3, sleep);
+ return 1;
}
- void threadFour(const int32_t sleep) {
+ int32_t threadFour(const int32_t sleep) {
// Your implementation goes here
printf("threadFour\n");
go2sleep(4, sleep);
+ return 1;
}
- void stop() {
+ int32_t stop() {
printf("stop\n");
server_->stop();
+ return 1;
}
void setServer(boost::shared_ptr<TServer> server) {