2009-04-01から1ヶ月間の記事一覧

embedding python - multi threaded

http://www.python.jp/doc/release/api/threads.html/Embedding Python in Multi-Threaded C/C++ Applications | Linux Journalと、その補足としてEmbedding Python in C/C++: Part I - CodeProjectメンドクセー

boost::python pointer ownership

struct A { virtual ~A() { delete hoge_ptr; } void CaptureOwnership(Hoge* ptr) { hoge_ptr = ptr; } protected: hoge* hoge_ptr; }; こういうクラスを、下のようにPythonから使いたい場合。 >>// impl.py a = A(); hoge = Hoge(); a.CaptureOwnership(ho…

libevent-2.0

http://levent.svn.sourceforge.net/viewvc/levent/trunk/libevent/whatsnew-2.0.txt?view=markup&pathrev=1191thread-safe周りの改良と、evbufferでのsendfile/mmapのサポートが気になる

gcc-4.5 boost-1_8 conflict is_empty

gcc-4.5 20090327 snapshot / boost-1_38 /usr/local/gcc/4.5/bin/../lib/gcc/i686-pc-linux-gnu/4.5.0/../../../../include/c++/4.5.0/tr1_impl/type_traits: In function ‘bool boost::filesystem::is_empty(const boost::filesystem::path&)’: /usr/local…