*** empty log message ***

This commit is contained in:
Arvid Norberg 2003-11-05 17:42:27 +00:00
parent 2ce4802cf1
commit f495117e39
2 changed files with 18 additions and 1 deletions

View File

@ -82,6 +82,21 @@ namespace libtorrent
namespace detail
{
// workaround for microsofts
// hardware exceptions that makes
// it hard to debug stuff
#if defined(WIN32) && !defined(NDEBUG)
struct eh_initializer
{
eh_initializer()
{ _set_se_translator(straight_to_debugger); }
static void straight_to_debugger(unsigned int, EXCEPTION_POINTERS*)
{ throw; }
};
#else
struct eh_initializer {};
#endif
// this data is shared between the main thread and the
// thread that initialize pieces
@ -178,7 +193,7 @@ namespace libtorrent
std::string extract_fingerprint(const peer_id& p);
class session: public boost::noncopyable
class session: public boost::noncopyable, detail::eh_initializer
{
public:

View File

@ -79,6 +79,7 @@ namespace libtorrent
{
void checker_impl::operator()()
{
eh_initializer();
for (;;)
{
piece_checker_data* t;
@ -176,6 +177,7 @@ namespace libtorrent
void session_impl::operator()()
{
eh_initializer();
#if defined(TORRENT_VERBOSE_LOGGING)
m_logger = create_log("main session");
#endif