int main() { int t1, t2, t3, s1, s2, s3; so_init(); t1 = so_create(thread1, 42); t2 = so_create(thread2, t1); t3 = so_create(thread3, t2); so_join(t1, &s1); so_join(t2, &s2); so_join(t3, &s3); printf("Final values: %d %d %d\n", s1, s2, s3); return 0; }
void web_node_create(WEB_NODE* web_node) { so_create(&web_node->items, sizeof(WEB_NODE_ITEM), 1); web_node->root = INVALID_HANDLE; }
void udps_init(TCPIPS* tcpips) { so_create(&tcpips->udps.handles, sizeof(UDP_HANDLE), 1); }