Barracuda Application Server C/C++ Reference
NO
ThreadReleaseLock Struct Reference

Detailed Description

This class provides an easy and less error prone way of temporarily releasing a locked mutex.

This class is the inverse of class ThreadLock.

void // An HttpPage service function
myPagePage::service(HttpPage* page,
HttpRequest* request,
HttpResponse* response)
{
//Normal web-server calls here
{ ThreadReleaseLock rlock(req);
//Non web-server calls here
}
//Normal web-server calls here
}
See also
ThreadMutex ThreadLock

#include <ThreadLib.h>

Public Member Functions

 ThreadReleaseLock (struct HttpRequest *req)
 Temporarily unlock a locked mutex from within a resource.
 
 ThreadReleaseLock (ThreadMutex &m)
 Temporarily unlock a locked mutex.
 
 ThreadReleaseLock (ThreadMutex *m)
 Temporarily unlock a locked mutex.
 
 ThreadReleaseLock (ThreadLock &tl)
 Temporarily unlock a locked mutex.
 
 ThreadReleaseLock (ThreadLock *tl)
 Temporarily unlock a locked mutex.
 
 ~ThreadReleaseLock ()
 Lock the temporarily unlock mutex.
 
HttpRequest
The HttpServer creates an HttpRequest object when the HttpServer parses a client request.
Definition: HttpServer.h:819
HttpPage
An HttpPage, which is typically created by the CSP compiler, is similar to a Java servlet.
Definition: HttpServer.h:2272
HttpResponse
This object is used when sending response messages back to the client.
Definition: HttpServer.h:1194
ThreadReleaseLock
This class provides an easy and less error prone way of temporarily releasing a locked mutex.
Definition: ThreadLib.h:152