Skip to content

Commit

Permalink
Fix compile problems on macosx
Browse files Browse the repository at this point in the history
Change-Id: I4046878ca7e055d39a970cc897b99366058ce69a
Reviewed-on: http://review.couchbase.org/25114
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
  • Loading branch information
trondn committed Mar 13, 2013
1 parent 1d3182c commit 1097eca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/pillowfight/pillowfight.cc
Expand Up @@ -306,8 +306,8 @@ class InstancePool
class ThreadContext class ThreadContext
{ {
public: public:
ThreadContext(InstancePool *pool) : ThreadContext(InstancePool *p) :
currSeqno(0), pool(pool) { currSeqno(0), pool(p) {
srand(config.getRandomSeed()); srand(config.getRandomSeed());
for (int ii = 0; ii < 8192; ++ii) { for (int ii = 0; ii < 8192; ++ii) {
seqno[ii] = rand(); seqno[ii] = rand();
Expand Down Expand Up @@ -676,7 +676,7 @@ int main(int argc, char **argv)
} }


std::list<pthread_t> threads; std::list<pthread_t> threads;
for (int ii = 0; ii < config.getNumThreads(); ++ii) { for (uint32_t ii = 0; ii < config.getNumThreads(); ++ii) {
ThreadContext *ctx = new ThreadContext(pool); ThreadContext *ctx = new ThreadContext(pool);
contexts.push_back(ctx); contexts.push_back(ctx);


Expand Down

0 comments on commit 1097eca

Please sign in to comment.