Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Inventory Manager For Dynamics CRM 4.0
Dockit Migrator for SharePoint 11.8.6905
Australia Post Shipping For Magento 2 1.0.0
StarTrack Shipping For Magento 2 2.0.0
Mydala script 1.3
dotConnect for FreshBooks 1.8
Odoo Kingfisher Theme 1.0
Bitcoin Mining Software - Bitcoin Mining Script 1.0.2
Excel Add-in for Magento 1.7
Excel Add-in for MailChimp 1.7
Devart Excel Add-in for QuickBooks 1.7
Excel Add-in for PostgreSQL 1.7
Devart Excel Add-in for MySQL 1.7
Devart Excel Add-in for NetSuite 1.7
Excel Add-in for Salesforce 1.7
Top Code
ATN Site Builder 3.0
ATN Resume Finder 2.0
PHP Review Script 1.0
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
Excel Add-in for PostgreSQL 1.1
Excel Add-in for Salesforce 1.1
Excel Add-in for MailChimp 1.1
Aglowsoft SQL Query Tools 8.2
Classified Ad Lister 1.0
Solid File System OS edition 5.1
ADO.NET Provider for ExactTarget 1.0
Deals and Discounts Website Script 1.0.2
dotConnect for FreshBooks 1.8
Excel Add-in for Magento 1.6
Top Rated
phpEnter 5.1.
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
A native implementation of threading.Lock and threading.RLock using Pyre x
File ID: 65707






A native implementation of threading.Lock and threading.RLock using Pyre x
Download A native implementation of threading.Lock and threading.RLock using Pyre xhttp://code.activestate.com/recipes/310792-a-native-implementation-of-threadinglock-and-threa/?in=lang-pythonReport Error Link
License: Freeware
Downloads: 2
Submit Rating:
A native implementation of threading.Lock and threading.RLock using Pyre x Description
Description: Locks or mutexes are very basic primitives used to coordinate threads operations in multi-threaded programs. Unfortunately, even if Python provides a low-level implementation of locks in the thread module, the high level implementation of threading RLock is still in Python code, which is a bit worrying since locking is always a time critical task. This recipe implements both locks in Pyrex to get the speed of native code, and gives an example of how great Pyrex is.

License: Freeware

Related: Threads

O/S:Windows

Downloads: 2



More Similar Code

A generic implementation of STL containers and some STL algorithms. The main intent is no make this STL implementation to work with any kind of pointers defined by allocator classes, e.g. memory_mgr::offset_ptr.



This project will implement a reference implementation of an open and customizable online application repository.



Boogie is a Javascript implementation of Java's Swing API.Using this well known API makes it easier for Java Programmers to write Web based Applications.



SpeedyGA is a vectorized implementation of a genetic algorithm in the Matlab programming language. Without bells and whistles, it faithfully implements the specification for a Simple GA given on pgs 10, 11 of M. Mitchell's GA book. See comments in...



Railendar is a Rails implementation of a web calendar with support for recurring events, exceptions, and other features, originally used for a small music/arts venue. It uses the Calendar Plugin for the actual calendar generation.



A Ruby implementation of the MythTV backend protocol, and wrapper to access certain other HTTP-based functionality served by an instance of MythTV's backend daemon



Sudoku Solver - A generic implementation of Donald Knuth's Dancing Links algorithm and a number of techniques, translated into rules, implemented in JESS.



This is a C++ implementation of a lock free priority queue that is well suited for multiprocessor systems.



A simple implementation of the Sieve of Eratosthenes in Python. The code should be self-explanatory, but I've added a docstring and some comments just in case.

Constructive criticism is of course appreciated.



A simple implementation of a dictionary which always (when applicable) returns keys, values, items (key-value pairs) sorted by keys (inserting/removing order doesn't matter and only keys are important; so please note that it is something different...

User Review for A native implementation of threading.Lock and threading.RLock using Pyre
- required fields
     

Please enter text on the image