~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_pthread.h

  • Committer: Monty Taylor
  • Date: 2008-10-23 02:48:56 UTC
  • Revision ID: monty@inaugust.com-20081023024856-31i4hijejds1cp2f
Took gettext.h out of header files.
Made error messages come through a function.
Removed ER_SAFE.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#ifndef _my_pthread_h
19
19
#define _my_pthread_h
20
20
 
 
21
#include <stdint.h>
 
22
#include <unistd.h>
 
23
 
21
24
#ifndef ETIME
22
25
#define ETIME ETIMEDOUT                         /* For FreeBSD */
23
26
#endif
250
253
int safe_cond_timedwait(pthread_cond_t *cond, safe_mutex_t *mp,
251
254
                        struct timespec *abstime, const char *file, uint32_t line);
252
255
void safe_mutex_global_init(void);
253
 
void safe_mutex_end(FILE *file);
 
256
void safe_mutex_end(void);
254
257
 
255
258
        /* Wrappers if safe mutex is actually used */
256
259
#define safe_mutex_assert_owner(mp)
374
377
#define ESRCH 1
375
378
#endif
376
379
 
377
 
typedef ulong my_thread_id;
 
380
typedef pthread_t my_thread_id;
378
381
 
379
382
extern bool my_thread_global_init(void);
380
383
extern void my_thread_global_end(void);