Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(0)  |  Derive(0)  |  Import(4)
Normally lamson.routing.Router has a lock around each call to all handlers
to prevent them from stepping on eachother.  It's assumed that 95% of the
time this is what you want, so it's the default.  You probably want
everything to go in order and not step on other things going off from other
threads in the system.

However, sometimes you know better what you are doing and this is where
@nolocking comes in.  Put this decorator on your state functions that you
don't care about threading issues or that you have found a need to 
manually tune, and it will run it without any locks.

        def nolocking(func):
    """
    Normally lamson.routing.Router has a lock around each call to all handlers
    to prevent them from stepping on eachother.  It's assumed that 95% of the
    time this is what you want, so it's the default.  You probably want
    everything to go in order and not step on other things going off from other
    threads in the system.

    However, sometimes you know better what you are doing and this is where
    @nolocking comes in.  Put this decorator on your state functions that you
    don't care about threading issues or that you have found a need to 
    manually tune, and it will run it without any locks.
    """
    attach_lamson_settings(func)
    func._lamson_settings['nolocking'] = True
    return func
        


src/s/h/shiva-HEAD/receiver/handlers/queue.py   shiva(Download)
 6  """ 
 
from lamson.routing import route_like, stateless, nolocking, route
from lamson import queue, handlers 
import logging

src/m/i/mixfaster-HEAD/app/handlers/remailer.py   mixfaster(Download)
import logging, uuid
from lamson import view, queue, utils
from lamson.utilities import *
from lamson.routing import route, route_like, stateless, nolocking
from lamson.mail import MailResponse

src/l/a/lamson-1.3.4/lamson/handlers/queue.py   lamson(Download)
"""
 
from lamson.routing import route_like, stateless, nolocking
from lamson import queue, handlers
import logging

src/l/a/lamson-HEAD/lamson/handlers/queue.py   lamson(Download)
"""
 
from lamson.routing import route_like, stateless, nolocking
from lamson import queue, handlers
import logging