~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_thr_init.c

  • Committer: Brian Aker
  • Date: 2008-06-28 02:03:37 UTC
  • Revision ID: brian@tangent.org-20080628020337-6y2swv2izzde76vw
Removed my_pthread_setprio()

Show diffs side-by-side

added added

removed removed

Lines of Context:
255
255
          (ulong) pthread_self());
256
256
#endif  
257
257
 
258
 
  if (my_pthread_getspecific(struct st_my_thread_var *,THR_KEY_mysys))
 
258
  if (pthread_getspecific(THR_KEY_mysys))
259
259
  {
260
260
#ifdef EXTRA_DEBUG_THREADS
261
261
    fprintf(stderr,"my_thread_init() called more than once in thread 0x%lx\n",
303
303
void my_thread_end(void)
304
304
{
305
305
  struct st_my_thread_var *tmp;
306
 
  tmp= my_pthread_getspecific(struct st_my_thread_var*,THR_KEY_mysys);
 
306
  tmp= (struct st_my_thread_var *)pthread_getspecific(THR_KEY_mysys);
307
307
 
308
308
#ifdef EXTRA_DEBUG_THREADS
309
309
  fprintf(stderr,"my_thread_end(): tmp: 0x%lx  pthread_self: 0x%lx  thread_id: %ld\n",
351
351
 
352
352
struct st_my_thread_var *_my_thread_var(void)
353
353
{
354
 
  struct st_my_thread_var *tmp=
355
 
    my_pthread_getspecific(struct st_my_thread_var*,THR_KEY_mysys);
 
354
  struct st_my_thread_var *tmp= (struct st_my_thread_var*)pthread_getspecific(THR_KEY_mysys);
356
355
#if defined(USE_TLS)
357
356
  /* This can only happen in a .DLL */
358
357
  if (!tmp)