~crimsun/pulseaudio/trunk

« back to all changes in this revision

Viewing changes to src/pulsecore/thread-win32.c

  • Committer: Colin Guthrie
  • Author(s): Maarten Bosmans
  • Date: 2011-06-23 23:32:22 UTC
  • Revision ID: git-v1:3adc43b8fe507e3140f7d6f9bab32584b9eadfa4
win32: Make once-test work

The barrier is not used when pthread is not available.

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
    return pa_tls_get(thread_tls);
124
124
}
125
125
 
 
126
void* pa_thread_get_data(pa_thread *t) {
 
127
    pa_assert(t);
 
128
 
 
129
    return t->userdata;
 
130
}
 
131
 
 
132
void pa_thread_set_data(pa_thread *t, void *userdata) {
 
133
    pa_assert(t);
 
134
 
 
135
    t->userdata = userdata;
 
136
}
 
137
 
 
138
void pa_thread_set_name(pa_thread *t, const char *name) {
 
139
    /* Not implemented */
 
140
}
 
141
 
 
142
const char *pa_thread_get_name(pa_thread *t) {
 
143
    /* Not implemented */
 
144
    return NULL;
 
145
}
 
146
 
126
147
void pa_thread_yield(void) {
127
148
    Sleep(0);
128
149
}