Esempio n. 1
0
	void DWI::DWIngine::mainLoop( void )
	{
		// Begin the main event loop
		if ( __app != NULL )
		{
			// Run the startup process
			eventStart();

			while ( !__isStopping )
			{
				eventPreRender();
				eventRender();
				eventPostRender();
			}

			// Run the shutdown process
			eventStop();
		}
	}
Esempio n. 2
0
void NodeJSDebugger::OnNodeTerminated(clCommandEvent& event)
{
    wxUnusedVar(event);
    EventNotifier::Get()->TopFrame()->Raise();

    // Restart the network thread
    wxBusyCursor bc;
#ifndef __WXGTK__
    m_socket.Reset(NULL);
#else
    m_node.Terminate();
    m_socket.Reset(NULL);

    clDebugEvent eventStop(wxEVT_NODEJS_DEBUGGER_STOPPED);
    eventStop.SetDebuggerName("Node.js");
    EventNotifier::Get()->AddPendingEvent(eventStop);

    // Clear the debugger markers
    ClearDebuggerMarker();
#endif
}
Esempio n. 3
0
void testTimeFinalCallback(EventLoop * eventLoop_p, void * clientData){
    ntassert(1, "test timeFinalCallback"); 
    ntassert(EVENT_OK == eventStop(eventLoop_p), "test eventStop ");
}