for (i = 0; i < 4; i++) if (CHECK_FAIL(pthread_create(&thread_id[i], NULL,
&spin_lock_thread, &prog_fd))) goto close_prog; for (i = 4; i < 6; i++) if (CHECK_FAIL(pthread_create(&thread_id[i], NULL,
¶llel_map_access,
&map_fd[i - 4]))) goto close_prog; for (i = 0; i < 4; i++) if (CHECK_FAIL(pthread_join(thread_id[i], &ret) ||
ret != (void *)&prog_fd)) goto close_prog; for (i = 4; i < 6; i++) if (CHECK_FAIL(pthread_join(thread_id[i], &ret) ||
ret != (void *)&map_fd[i - 4])) goto close_prog;
close_prog:
bpf_object__close(obj);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.