Fixed compiler for Java code generation (not heavily tested yet, but fixes include...
[iot2.git] / iotjava / iotrmi / C++ / basics / TestClassComplete_Stub.cpp
index e524f4dc16924c9077b98fd1e251ce13fe768e82..be174b80c17a11ce33add0d8e97d96b76517a06a 100644 (file)
@@ -46,10 +46,8 @@ void TestClassComplete_Stub::registerCallback(CallBackInterface* _cb) {
                IoTRMIUtil::mapSkel->insert(make_pair(_cb, skel0));
                IoTRMIUtil::mapSkelId->insert(make_pair(_cb, objIdSent));
                cout << "Create new skeleton for TestClass! ID=" << objIdSent << endl;
-               //thread th0 (&CallBackInterface_Skeleton::___waitRequestInvokeMethod, std::ref(skel0));
                thread th0 (&CallBackInterface_Skeleton::___waitRequestInvokeMethod, std::ref(skel0), std::ref(skel0));  
                th0.detach();
-               //while(!didAlreadyInitWaitInvoke);
                while(!skel0->didInitWaitInvoke());
        } else {
                auto itId = IoTRMIUtil::mapSkelId->find(_cb);
@@ -57,7 +55,6 @@ void TestClassComplete_Stub::registerCallback(CallBackInterface* _cb) {
                cout << "Skeleton exists for TestClass! ID=" << objIdSent << endl;
        }
 
-       //int ___paramCB0 = 1;
        int ___paramCB0 = objIdSent;
        int methodId = 1;
        string retType = "void";
@@ -138,7 +135,7 @@ int main(int argc, char *argv[])
        //ports.push_back(43212);
 
        TestClassComplete *tcStub = new TestClassComplete_Stub(portSend, portRecv, skeletonAddress, rev, &bResult);
-       //cout << "Getting return value from getShort(): " << tcStub->getShort(1234) << endl;
+//     cout << "Getting return value from getShort(): " << tcStub->getShort(1234) << endl;
        //cout << "Getting return value from getShort(): " << tcStub->getShort(4321) << endl;
        //cout << "Getting return value from getShort(): " << tcStub->getShort(5678) << endl;
        cout << "==== CALLBACK ====" << endl;