Popular recipes tagged "synchronize"http://code.activestate.com/recipes/tags/synchronize/popular/2010-03-13T10:11:07-08:00ActiveState Code RecipesSynchronization Decorator for Class Methods (Python)
2010-03-13T10:11:07-08:00Rodney Drenthhttp://code.activestate.com/recipes/users/4050661/http://code.activestate.com/recipes/577105-synchronization-decorator-for-class-methods/
<p style="color: grey">
Python
recipe 577105
by <a href="/recipes/users/4050661/">Rodney Drenth</a>
(<a href="/recipes/tags/decorator/">decorator</a>, <a href="/recipes/tags/synchronize/">synchronize</a>, <a href="/recipes/tags/threads/">threads</a>).
</p>
<p>Synchronizes access to methods of a class with either an instance or class specific
lock.</p>
SyncFiles (Python)
2008-12-13T21:28:57-08:00Collin Stockshttp://code.activestate.com/recipes/users/4149235/http://code.activestate.com/recipes/576584-syncfiles/
<p style="color: grey">
Python
recipe 576584
by <a href="/recipes/users/4149235/">Collin Stocks</a>
(<a href="/recipes/tags/backup/">backup</a>, <a href="/recipes/tags/consistency/">consistency</a>, <a href="/recipes/tags/files/">files</a>, <a href="/recipes/tags/gnu/">gnu</a>, <a href="/recipes/tags/gpl/">gpl</a>, <a href="/recipes/tags/just_in_case/">just_in_case</a>, <a href="/recipes/tags/oop/">oop</a>, <a href="/recipes/tags/pickle/">pickle</a>, <a href="/recipes/tags/state_machine/">state_machine</a>, <a href="/recipes/tags/storage/">storage</a>, <a href="/recipes/tags/sync/">sync</a>, <a href="/recipes/tags/synchronize/">synchronize</a>).
Revision 3.
</p>
<p>This module allows you to handle and protect from inconsistencies sets of files that must all be saved at the same time. It does this be creating backups and temporary files. It has been moderately tested for bugs.</p>