[Subversion] / PEAK / src / peak / util / threads.py  

Log of /PEAK/src/peak/util/threads.py

Parent Directory

No default branch
Bookmark a link to HEAD: (view) (download) (as text)


Revision 1076 - (view) (download) (as text) - [select for diffs]
Modified Sat May 3 13:21:20 2003 UTC (20 years, 11 months ago) by pje
File length: 5211 byte(s)
Diff to previous 927
Normalized whitespace.

Revision 927 - (view) (download) (as text) - [select for diffs]
Modified Mon Feb 24 21:26:07 2003 UTC (21 years, 1 month ago) by pje
File length: 5290 byte(s)
Diff to previous 481
Added first draft 'RLock' and 'ResourceManager' classes that implement the
PEAK locking interface (attempt/obtain/release/locked) in a re-entrant
fashion for a single resource or an address space.  The idea is that we
will use a 'ResourceManager' to handle internal locks on addresses (such as
filenames) that refer to external resources, by calling
'someRM.obtain("some URI")' to lock the resource, etc.  The lockfiles in
'peak.running.lockfiles' should be changed to use this approach, so that
even independent lockfile instances share the same actual threadlock.
Also, we can use this when we begin implementing filesystem DM's (such as
the one we need for writing XMI files).

None of this code is tested; we really need a good unit test suite for
the entire 'threads' module.

Revision 481 - (view) (download) (as text) - [select for diffs]
Modified Fri Jul 26 17:08:25 2002 UTC (21 years, 8 months ago) by pje
File length: 2777 byte(s)
Diff to previous 479
Fleshed-out the implementation of the 'waitflag' argument, emulating the
exact values returned by Python in different states, and added a
RuntimeError for an attempt to lock an already-locked DummyLock.  Also,
renamed LockType to DummyLock to more easily distinguish from the real
thing when debugging, and made DummyLock a bit more lightweight using
__slots__.

Revision 479 - (view) (download) (as text) - [select for diffs]
Modified Fri Jul 26 13:45:18 2002 UTC (21 years, 8 months ago) by tsarna
File length: 2165 byte(s)
Diff to previous 477
Allow waitmode to be passed to no-op lock acquire().

Revision 477 - (view) (download) (as text) - [select for diffs]
Modified Wed Jul 24 21:15:33 2002 UTC (21 years, 9 months ago) by tsarna
File length: 2153 byte(s)
Diff to previous 476
Make this work in the HAVE_THREADS==False case

Revision 476 - (view) (download) (as text) - [select for diffs]
Added Tue Jul 23 16:40:09 2002 UTC (21 years, 9 months ago) by pje
File length: 2092 byte(s)
Added thread-safety utility module, and modified UUID creation to use it.

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

  Diffs between and
  Type of Diff should be a

Sort log by:

cvs-admin@eby-sarna.com

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help