~ubuntu-branches/ubuntu/trusty/liburcu/trusty

« back to all changes in this revision

Viewing changes to tests/test_urcu_hash_unique.c

  • Committer: Package Import Robot
  • Author(s): Jon Bernard, 4506e88
  • Date: 2013-01-20 16:47:51 UTC
  • mfrom: (1.1.21)
  • Revision ID: package-import@ubuntu.com-20130120164751-fo47kysh25hj7tp0
Tags: 0.7.6-1
[4506e88] New upstream version 0.7.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
        unsigned long long *count = _count;
65
65
 
66
66
        printf_verbose("thread_begin %s, thread id : %lx, tid %lu\n",
67
 
                        "reader", pthread_self(), (unsigned long)gettid());
 
67
                        "reader", (unsigned long) pthread_self(),
 
68
                        (unsigned long) gettid());
68
69
 
69
70
        set_affinity();
70
71
 
109
110
 
110
111
        *count = URCU_TLS(nr_reads);
111
112
        printf_verbose("thread_end %s, thread id : %lx, tid %lu\n",
112
 
                        "reader", pthread_self(), (unsigned long)gettid());
 
113
                        "reader", (unsigned long) pthread_self(),
 
114
                        (unsigned long) gettid());
113
115
        printf_verbose("readid : %lx, lookupfail %lu, lookupok %lu\n",
114
116
                        pthread_self(), URCU_TLS(lookup_fail),
115
117
                        URCU_TLS(lookup_ok));
127
129
        int loc_add_unique;
128
130
 
129
131
        printf_verbose("thread_begin %s, thread id : %lx, tid %lu\n",
130
 
                        "writer", pthread_self(), (unsigned long)gettid());
 
132
                        "writer", (unsigned long) pthread_self(),
 
133
                        (unsigned long) gettid());
131
134
 
132
135
        set_affinity();
133
136
 
221
224
        rcu_unregister_thread();
222
225
 
223
226
        printf_verbose("thread_end %s, thread id : %lx, tid %lu\n",
224
 
                        "writer", pthread_self(), (unsigned long)gettid());
 
227
                        "writer", (unsigned long) pthread_self(),
 
228
                        (unsigned long) gettid());
225
229
        printf_verbose("info id %lx: nr_add %lu, nr_addexist %lu, nr_del %lu, "
226
 
                        "nr_delnoent %lu\n", pthread_self(), URCU_TLS(nr_add),
 
230
                        "nr_delnoent %lu\n", (unsigned long) pthread_self(), URCU_TLS(nr_add),
227
231
                        URCU_TLS(nr_addexist), URCU_TLS(nr_del),
228
232
                        URCU_TLS(nr_delnoent));
229
233
        count->update_ops = URCU_TLS(nr_writes);