javamanager/javainstaller/javasifplugin/tsrc/src.s60/main.cpp
changeset 50 023eef975703
parent 49 35baca0e7a2e
child 80 d6dafc5d983f
equal deleted inserted replaced
49:35baca0e7a2e 50:023eef975703
   589         "testsifapi: cancelFunction: Called");
   589         "testsifapi: cancelFunction: Called");
   590 
   590 
   591     // TEMP TEST
   591     // TEMP TEST
   592     // This thread does not have active scheduler,
   592     // This thread does not have active scheduler,
   593     // create and install it
   593     // create and install it
   594     CActiveScheduler* as = new(ELeave) CActiveScheduler();   
   594     CActiveScheduler* as = new CActiveScheduler();
       
   595     if (NULL == as)
       
   596     {
       
   597         ELOG(EJavaConverters,
       
   598             "testsifapi: cancelFunction: Cannot create active scheduler");
       
   599             return 1;
       
   600     }
   595     CActiveScheduler::Install(as);
   601     CActiveScheduler::Install(as);
   596 
   602 
   597     // Wait for 6 seconds so that the operation to be cancelled
   603     // Wait for 6 seconds so that the operation to be cancelled
   598     // has had time to really do something already
   604     // has had time to really do something already
   599     User::After(6000000);
   605     User::After(6000000);