o2on svn commit
o2on-****@lists*****
2008年 3月 20日 (木) 22:12:33 JST
Revision: 63 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=o2on&view=rev&rev=63 Author: laxmi Date: 2008-03-20 22:12:33 +0900 (Thu, 20 Mar 2008) Log Message: ----------- コピーコンストラクタと代入演算子をpublicからprivateに変更 変更したクラス:Mutex,File,MappedFile,EventObject Modified Paths: -------------- branches/BRANCH_0043/o2on/src.o2on/event.h branches/BRANCH_0043/o2on/src.o2on/file.h branches/BRANCH_0043/o2on/src.o2on/mutex.h Modified: branches/BRANCH_0043/o2on/src.o2on/event.h =================================================================== --- branches/BRANCH_0043/o2on/src.o2on/event.h 2008-03-18 11:25:33 UTC (rev 62) +++ branches/BRANCH_0043/o2on/src.o2on/event.h 2008-03-20 13:12:33 UTC (rev 63) @@ -51,4 +51,8 @@ { WaitForSingleObject(event_handle, timeout_ms); } + +private: + EventObject(const EventObject& rhs); + EventObject& operator=(const EventObject& rhs); }; Modified: branches/BRANCH_0043/o2on/src.o2on/file.h =================================================================== --- branches/BRANCH_0043/o2on/src.o2on/file.h 2008-03-18 11:25:33 UTC (rev 62) +++ branches/BRANCH_0043/o2on/src.o2on/file.h 2008-03-20 13:12:33 UTC (rev 63) @@ -182,6 +182,10 @@ GetFileSizeEx(hFile, (LARGE_INTEGER*)&fsize); return (fsize.QuadPart); } + +private: + File(const File& rhs); + File& operator=(const File& rhs); }; @@ -328,4 +332,8 @@ { return (MappedFile::AllocationGranularity); } + +private: + MappedFile(const MappedFile& rhs); + MappedFile& operator=(const MappedFile& rhs); }; Modified: branches/BRANCH_0043/o2on/src.o2on/mutex.h =================================================================== --- branches/BRANCH_0043/o2on/src.o2on/mutex.h 2008-03-18 11:25:33 UTC (rev 62) +++ branches/BRANCH_0043/o2on/src.o2on/mutex.h 2008-03-20 13:12:33 UTC (rev 63) @@ -81,4 +81,8 @@ { ReleaseMutex(mutex_handle); } + +private: + Mutex(const Mutex& rhs); + Mutex& operator=(const Mutex& rhs); };