PSPDFGlobalLock Class Reference
| Inherits from | NSObject |
| Conforms to | NSLocking |
| Declared in | PSPDFGlobalLock.h |
Tasks
Other Methods
-
+ sharedGlobalLockGet global singleton.
Render Lock
-
– lockWill lock if the internal counter is depleted. Counter value will depend on the device (cores, memory)
-
– unlock
Document Provider Tracking
-
– registerDocumentProvider:Register any document provider that opens a CGPDFDocument reference.
-
– deregisterDocumentProvider:Removes any document provider who closed the document reference.
-
– freeAllDocumentProvidersRequests a document close on all providers – might not be instant if they curently work with the reference.
-
allowedOpenDocumentRequestsNumber of requests we allow to keep in memory for faster access.
property -
– limitOpenDocumentProvidersSends close messages until we have the allowed number of document providers open.
Instance Methods
deregisterDocumentProvider:
Removes any document provider who closed the document reference.
- (void)deregisterDocumentProvider:(PSPDFDocumentProvider *)documentProviderDeclared In
PSPDFGlobalLock.hfreeAllDocumentProviders
Requests a document close on all providers – might not be instant if they curently work with the reference.
- (void)freeAllDocumentProvidersDeclared In
PSPDFGlobalLock.hlimitOpenDocumentProviders
Sends close messages until we have the allowed number of document providers open.
- (void)limitOpenDocumentProvidersDeclared In
PSPDFGlobalLock.hlock
Will lock if the internal counter is depleted. Counter value will depend on the device (cores, memory)
- (void)lockDeclared In
PSPDFGlobalLock.h