|
From: Frank V. C. <fr...@co...> - 2001-03-17 23:03:41
|
Hans Dulimarta wrote: > > > By the way, if you are going to add priority you may consider the actual > > Linux call to be wrapped in a static in Environment? > > I also found getpid(), getppid(), and clone() call in > Thread.cpp. > Maybe we should move them to Environment? See below :) > > Is the Enviroment designed to be a "leaf" module as a > wrapper of > all the underlying system? If yes, we should not put a call > to Thread::getKernelError() in > Environment::setupCommonAccess. Your right, organize a new static class if you like which covers the behavior you want, we can also use namespaces to localize the context: corelinux::Enviornment corelinux::Enviornment::Process etc. -- Frank V. Castellucci http://corelinux.sourceforge.net OOA/OOD/C++ Standards and Guidelines for Linux http://PythPat.sourceforge.net Pythons Pattern Package |