void handleLoginoutCB(const HeaderOptions &, const OCRepresentation &rep, const int ecode) { cout << "Auth response received code: " << ecode << endl; if (rep.getPayload() != NULL) { printRepresentation(rep); } if (ecode == 4) { g_accesstoken = rep.getValueToString("accesstoken"); g_uid = rep.getValueToString("uid"); } g_callbackLock.notify_all(); }