// we translate the string list to an app representation // this happens before fork() if not in lazy/lazy-apps mode static void uwsgi_rados_setup() { if (!urados.timeout) { urados.timeout = uwsgi.socket_timeout; } struct uwsgi_string_list *usl = urados.mountpoints; while(usl) { uwsgi_rados_add_mountpoint(usl->value, usl->len); usl = usl->next; } // now initialize a pthread_mutex for each async core if (uwsgi.async > 0) { int i; urados.urio = uwsgi_calloc(sizeof(struct uwsgi_rados_io) * uwsgi.async); for(i=0;i<uwsgi.async;i++) { urados.urio[i].fds[0] = -1; urados.urio[i].fds[1] = -1; if (pthread_mutex_init(&urados.urio[i].mutex, NULL)) { uwsgi_error("uwsgi_rados_setup()/pthread_mutex_init()"); exit(1); } } } }
// we translate the string list to an app representation // this happens before fork() if not in lazy/lazy-apps mode static void uwsgi_rados_setup() { if (!urados.timeout) { urados.timeout = uwsgi.socket_timeout; } struct uwsgi_string_list *usl = urados.mountpoints; while(usl) { uwsgi_rados_add_mountpoint(usl->value, usl->len); usl = usl->next; } }
// we translate the string list to an app representation // this happens before fork() if not in lazy/lazy-apps mode static void uwsgi_rados_setup() { if (!urados.timeout) { urados.timeout = uwsgi.shared->options[UWSGI_OPTION_SOCKET_TIMEOUT]; } struct uwsgi_string_list *usl = urados.mountpoints; while(usl) { uwsgi_rados_add_mountpoint(usl->value, usl->len); usl = usl->next; } }