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)
18 WRun(YWebUI::_argc, YWebUI::_argv, &createApplication);
21 pthread_t webserver_thread;
23 pthread_attr_init( & attr );
25 if( pthread_create( & webserver_thread, & attr, start_webserver_thread, 0 ) > 0 )
27 y2internal ("Could not create Web server thread, aborting");
31 y2milestone( "Server thread running");
33 // wait until the UI thread is ready
34 while (! YWebUI::ui() )
41 string YWebUIComponent::name() const { return "web"; }