ProteoWizard
|
#include "BinaryIndexStream.hpp"
#include "pwiz/utility/misc/unit.hpp"
#include "pwiz/utility/misc/Std.hpp"
#include "boost/thread/thread.hpp"
#include "boost/thread/barrier.hpp"
Go to the source code of this file.
Functions | |
void | test () |
void | testThreadSafetyWorker (boost::barrier *testBarrier, BinaryIndexStream *testIndex) |
void | testThreadSafety () |
int | main (int argc, char *argv[]) |
Variables | |
ostream * | os_ = 0 |
void test | ( | ) |
Definition at line 35 of file BinaryIndexStreamTest.cpp.
References pwiz::data::BinaryIndexStream::create(), pwiz::data::BinaryIndexStream::find(), pwiz::data::Index::Entry::id, pwiz::data::Index::Entry::index, boost::lexical_cast(), pwiz::data::Index::Entry::offset, os_, pwiz::data::BinaryIndexStream::size(), and unit_assert.
void testThreadSafetyWorker | ( | boost::barrier * | testBarrier, |
BinaryIndexStream * | testIndex | ||
) |
Definition at line 145 of file BinaryIndexStreamTest.cpp.
References e(), pwiz::data::BinaryIndexStream::find(), and unit_assert.
Referenced by testThreadSafety().
void testThreadSafety | ( | ) |
Definition at line 180 of file BinaryIndexStreamTest.cpp.
References pwiz::data::BinaryIndexStream::create(), pwiz::data::Index::Entry::id, pwiz::data::Index::Entry::index, boost::lexical_cast(), pwiz::data::Index::Entry::offset, os_, pwiz::data::BinaryIndexStream::size(), testThreadSafetyWorker(), and unit_assert.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 211 of file BinaryIndexStreamTest.cpp.
References e(), os_, test(), TEST_EPILOG, TEST_FAILED, TEST_PROLOG, and testThreadSafety().
ostream* os_ = 0 |
Definition at line 32 of file BinaryIndexStreamTest.cpp.