~ubuntu-branches/ubuntu/dapper/ruby1.9/dapper

« back to all changes in this revision

Viewing changes to lib/sync.rb

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2006-05-08 22:23:12 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060508222312-w2wqeaz030ifi59j
Tags: 1.9.0+20060423-3ubuntu1
* Resynchronized with Debian.
* Only change from Debian is the addition of
  debian/patches/903_sparc_fix_define.patch to fix illegal instructions
  at runtime on sparc. (change from 1.9.0+20050921-1ubuntu1)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
2
#   sync.rb - 2 phase lock with counter
3
3
#       $Release Version: 1.0$
4
 
#       $Revision: 1.4 $
5
 
#       $Date: 2001/06/06 14:19:33 $
 
4
#       $Revision: 1.5 $
 
5
#       $Date: 2005/12/29 12:03:55 $
6
6
#       by Keiju ISHITSUKA(keiju@ishitsuka.com)
7
7
#
8
8
# --
40
40
#
41
41
 
42
42
unless defined? Thread
43
 
  fail "Thread not available for this ruby interpreter"
 
43
  raise "Thread not available for this ruby interpreter"
44
44
end
45
45
 
46
46
module Sync_m
47
 
  RCS_ID='-$Header: /src/ruby/lib/sync.rb,v 1.4 2001/06/06 14:19:33 keiju Exp $-'
 
47
  RCS_ID='-$Header: /var/cvs/src/ruby/lib/sync.rb,v 1.5 2005/12/29 12:03:55 matz Exp $-'
48
48
  
49
49
  # lock mode
50
50
  UN = :UN