Commit d111c19d authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel
Browse files

#4440 fix arg to pthread_create refs[t:4440]

git-svn-id: file:///svn/toku/tokudb@39218 c7de825b-a66e-492c-adef-691d508d4ae1
parent 99f483bd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -120,8 +120,8 @@ static void *blocking_c_del_thread(void *arg) {
static void run_test(DB_ENV *db_env, DB *db, int nthreads, uint64_t nrows, long sleeptime) {
    int r;
    toku_pthread_t tids[nthreads];
    for (int i = 0; i < nthreads-1; i++) {
    struct blocking_c_del_args a = { db_env, db, nrows, sleeptime };
    for (int i = 0; i < nthreads-1; i++) {
        r = toku_pthread_create(&tids[i], NULL, blocking_c_del_thread, &a); assert(r == 0);
    }
    blocking_c_del(db_env, db, nrows, sleeptime);
+1 −1
Original line number Diff line number Diff line
@@ -118,8 +118,8 @@ static void *blocking_c_del_thread(void *arg) {
static void run_test(DB_ENV *db_env, DB *db, int nthreads, uint64_t nrows, long sleeptime) {
    int r;
    toku_pthread_t tids[nthreads];
    for (int i = 0; i < nthreads-1; i++) {
    struct blocking_c_del_args a = { db_env, db, nrows, sleeptime };
    for (int i = 0; i < nthreads-1; i++) {
        r = toku_pthread_create(&tids[i], NULL, blocking_c_del_thread, &a); assert(r == 0);
    }
    blocking_c_del(db_env, db, nrows, sleeptime);
+1 −1
Original line number Diff line number Diff line
@@ -74,8 +74,8 @@ static void *blocking_first_thread(void *arg) {
static void run_test(DB_ENV *db_env, DB *db, int nthreads, uint64_t nrows, long sleeptime) {
    int r;
    toku_pthread_t tids[nthreads];
    for (int i = 0; i < nthreads-1; i++) {
    struct blocking_first_args a = { db_env, db, nrows, sleeptime };
    for (int i = 0; i < nthreads-1; i++) {
        r = toku_pthread_create(&tids[i], NULL, blocking_first_thread, &a); assert(r == 0);
    }
    blocking_first(db_env, db, nrows, sleeptime);
+1 −1
Original line number Diff line number Diff line
@@ -91,8 +91,8 @@ static void *blocking_first_thread(void *arg) {
static void run_test(DB_ENV *db_env, DB *db, int nthreads, uint64_t nrows, long sleeptime) {
    int r;
    toku_pthread_t tids[nthreads];
    for (int i = 0; i < nthreads-1; i++) {
    struct blocking_first_args a = { db_env, db, nrows, sleeptime };
    for (int i = 0; i < nthreads-1; i++) {
        r = toku_pthread_create(&tids[i], NULL, blocking_first_thread, &a); assert(r == 0);
    }
    blocking_first(db_env, db, nrows, sleeptime);
+1 −1
Original line number Diff line number Diff line
@@ -91,8 +91,8 @@ static void *blocking_last_thread(void *arg) {
static void run_test(DB_ENV *db_env, DB *db, int nthreads, uint64_t nrows, long sleeptime) {
    int r;
    toku_pthread_t tids[nthreads];
    for (int i = 0; i < nthreads-1; i++) {
    struct blocking_last_args a = { db_env, db, nrows, sleeptime };
    for (int i = 0; i < nthreads-1; i++) {
        r = toku_pthread_create(&tids[i], NULL, blocking_last_thread, &a); assert(r == 0);
    }
    blocking_last(db_env, db, nrows, sleeptime);
Loading