On Sun, 2008-05-18 at 00:53 +0800, Roy Lee wrote: > Hi, > > Referring to the sync_pipes API, > create_sync_pipes(), wait_son_startup(), notify_startup() > > which is defined in the: > testcases/kernel/syscalls/lib/libtestsuite.[ch] > > I found the new sync_pipes API very convenient to synchronize processes. > > However the naming might pose some semantic restrictions on their usages. > Since it can be used for making parent to wait child, and vice versa, > perhaps a better naming should be used. For example: > > sync_pipes_create (), sync_pipes_wait (), sync_pipes_notify() > > other names will be good as long as they don't assume the caller is child or > parent.
Renaming is a good suggestion. > > Furthermore, since it is also suitable for being used in common test cases, > moving > it outside the syscalls's directory to a more common place might be a good > idea. > Let me know where do you want to put it ? Regards-- Subrata > Roy > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Ltp-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ltp-list ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
