attempt at msvc-10.0 build fix for test_dhy + small documentation note

This commit is contained in:
Arvid Norberg 2014-04-01 00:09:23 +00:00
parent f3e86dbc4a
commit 9f0aec9427
2 changed files with 11 additions and 2 deletions

View File

@ -953,6 +953,12 @@ namespace libtorrent
// this blocking call, the dispatcher can be called and it can pop the
// alert independently.
//
// .. note::
// Although these functions are all thread-safe, popping alerts from
// multiple separate threads may introduce race conditions in that
// the thread issuing an asynchronous operation may not be the one
// receiving the alert with the result.
//
// In the python binding, ``wait_for_alert`` takes the number of
// milliseconds to wait as an integer.
//

View File

@ -762,8 +762,11 @@ int test_main()
// ==== get / put mutable items ===
std::pair<const char*, int> itemv;
std::pair<char const*, int> empty_salt(NULL, 0);
std::pair<char const*, int> itemv;
std::pair<char const*, int> empty_salt;
empty_salt.first = NULL;
empty_salt.second = 0;
char signature[item_sig_len];
char buffer[1200];
int seq = 4;