Hi! > Some notes; > > I assume you used syscall(SYS_futex, ..) instead of pthread_mutex (which > uses it internally) because of the linking simplicity, right? > Fair tradeoff.
Not only. As far as I know pthread_mutexes use private futexes and as far as I understand these these will not work with forked processes. Or at least are not expected to be used that way I haven't actually tried it. > No idea what you're going to use for the final code, but I'd default to > > perror("open()"); > > instead of > > fprintf(stderr, "open(): %s\n", strerror(errno)); > > (you also don't need errno.h for the former one). The code is just quick test. I will desing proper library functions later. -- Cyril Hrubis chru...@suse.cz ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list