void operator()(Parm1_type _parm) { if( !m_isBlocked ) { m_delegate(_parm); } }
//-------------------------------------------------- //-------------------------------------------------- void GooglePlayRemoteNotificationSystem::OnRemoteTokenReceived(const std::string& in_token) { m_token = ChilliSource::BaseEncoding::Base64Encode(in_token); if(m_delegate != nullptr) { m_delegate(m_token); m_delegate = nullptr; } }
void Thread::Run() { m_delegate(); }