[pygccxml-commit] SF.net SVN: pygccxml: [568] pyplusplus_dev/pyplusplus/code_repository/ gil_state.
Brought to you by:
mbaas,
roman_yakovenko
From: <mb...@us...> - 2006-09-21 09:47:17
|
Revision: 568 http://svn.sourceforge.net/pygccxml/?rev=568&view=rev Author: mbaas Date: 2006-09-21 02:47:12 -0700 (Thu, 21 Sep 2006) Log Message: ----------- Renamed the class from gil_state_t to gil_guard_t. Modified Paths: -------------- pyplusplus_dev/pyplusplus/code_repository/gil_state.py Modified: pyplusplus_dev/pyplusplus/code_repository/gil_state.py =================================================================== --- pyplusplus_dev/pyplusplus/code_repository/gil_state.py 2006-09-20 19:57:24 UTC (rev 567) +++ pyplusplus_dev/pyplusplus/code_repository/gil_state.py 2006-09-21 09:47:12 UTC (rev 568) @@ -7,7 +7,7 @@ This file contains C++ code to acquire/release the GIL. """ -file_name = "__gil_state.pypp.hpp" +file_name = "__gil_guard.pypp.hpp" code = \ """// Copyright 2004 Roman Yakovenko. @@ -15,22 +15,22 @@ // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) -#ifndef __gil_state_pyplusplus_hpp__ -#define __gil_state_pyplusplus_hpp__ +#ifndef __gil_guard_pyplusplus_hpp__ +#define __gil_guard_pyplusplus_hpp__ -namespace pyplusplus{ +namespace pyplusplus{ namespace threading { -class gil_state_t +class gil_guard_t { public: - gil_state_t( bool lock=false ) + gil_guard_t( bool lock=false ) : m_locked( false ) { if( lock ) ensure(); } - ~gil_state_t() { + ~gil_guard_t() { release(); } @@ -55,8 +55,8 @@ PyGILState_STATE m_gstate; }; -} /* pyplusplus*/ +} /* threading */ } /* pyplusplus*/ -#endif//__gil_state_pyplusplus_hpp__ +#endif//__gil_guard_pyplusplus_hpp__ """ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |