~ubuntu-branches/ubuntu/intrepid/ruby1.9/intrepid-updates

« back to all changes in this revision

Viewing changes to thread_win32.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-09-04 16:01:17 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070904160117-i15zckg2nhxe9fyw
Tags: 1.9.0+20070830-2ubuntu1
* Sync from Debian; remaining changes:
  - Add -g to CFLAGS.
* Fixes build failure on ia64.
* Fixes build failure with gcc-4.2 on lpia.
* Robustify check for target_os, fixing build failure on lpia.
* Set Ubuntu maintainer address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
  thread_win32.h -
4
4
 
5
 
  $Author: shyouhei $
6
 
  $Date: 2007-02-13 08:01:19 +0900 (火, 13  2月 2007) $
 
5
  $Author: ko1 $
 
6
  $Date: 2007-08-28 01:48:14 +0900 (火, 28  8月 2007) $
7
7
 
8
8
  Copyright (C) 2004-2006 Koichi Sasada
9
9
 
24
24
 
25
25
typedef HANDLE rb_thread_id_t;
26
26
typedef CRITICAL_SECTION rb_thread_lock_t;
 
27
typedef struct rb_thread_cond_struct rb_thread_cond_t;
27
28
 
28
29
int native_mutex_lock(rb_thread_lock_t *);
29
30
int native_mutex_unlock(rb_thread_lock_t *);
30
31
int native_mutex_trylock(rb_thread_lock_t *);
31
32
void native_mutex_initialize(rb_thread_lock_t *);
32
33
 
 
34
void native_cond_signal(rb_thread_cond_t *cond);
 
35
void native_cond_broadcast(rb_thread_cond_t *cond);
 
36
void native_cond_wait(rb_thread_cond_t *cond, rb_thread_lock_t *mutex);
 
37
void native_cond_initialize(rb_thread_cond_t *cond);
 
38
void native_cond_destroy(rb_thread_cond_t *cond);
 
39
 
33
40
typedef struct native_thread_data_struct {
34
41
    HANDLE interrupt_event;
35
42
} native_thread_data_t;