2 #include "YWebUIComponent.h"
5 YWebUIComponent::YWebUIComponent()
11 YUI * YWebUIComponent::createUI( int argc, char **argv, bool with_threads, const char * macro_file )
13 // save the arguments for the UI thread (http server args etc)
17 pthread_t webserver_thread;
19 pthread_attr_init( & attr );
21 if( pthread_create( & webserver_thread, & attr, start_webserver_thread, 0 ) > 0 )
23 y2internal ("Could not create Web server thread, aborting");
27 y2milestone( "Server thread running");
29 // wait until the UI thread is ready
30 while (! YWebUI::ui() )
32 y2milestone( "Waiting for the UI" );
35 y2milestone( "UI created" );
39 string YWebUIComponent::name() const { return "web"; }