printf(" -h, --help\n");
}
+void *executor_thread(void *arg)
+{
+ forb_executor_t *executor = arg;
+ forb_executor_run(executor);
+ return NULL;
+}
+
int main(int argc, char *argv[])
{
forb_orb orb;
int pid;
int pid2;
+ fosa_thread_id_t tid;
fcb_orb = forb_init(NULL, NULL, NULL);
if (!fcb_orb) error(1, errno, "forb_init");
// Initialize head of linked list
sta_list_init_head(&priv.sta_list);
- //create executor and register 2 interfaces
+ //create executors and register 2 interfaces
ret = forb_executor_init(&executor_wai);
if (ret) goto error;
forb_daemon_ready();
+ printf("Ready to create threads\n");
+ fosa_thread_create(&tid, NULL, executor_thread, &executor_wai);
+ fosa_thread_create(&tid, NULL, executor_thread, &executor_frm);
+
+ while(1) {
+ ;
+ }
+
+ /*
pid = fork();
if(pid != 0)
{
//exit(0);
}
}
-
+ */
destroy_and_error:
forb_executor_destroy(&executor_wai);