PROCESS-SAFE READ/WRITE LOCKS
First Claim
1. A non-transitory processor-readable medium storing code representing instructions that when executed cause a processor to:
- obtain a first mutual exclusion object, the first mutual exclusion object being a write mutual exclusion object associated with a shared resource;
obtain a second mutual exclusion object, the second mutual exclusion object being associated with an object manager module;
define a read event object with a name conforming to a predetermined format;
release the second mutual exclusion object;
release the first mutual exclusion object;
read at least a portion of the shared resource;
obtain the second mutual exclusion object;
destroy the read event object; and
release the second mutual exclusion object.
13 Assignments
0 Petitions
Accused Products
Abstract
In one embodiment, a non-transitory processor-readable medium stores code representing instructions that when executed cause a processor to obtain a first mutual exclusion object. The first mutual exclusion object can be a write mutual exclusion object associated with a shared resource. The code can further represent instructions that when executed cause the processor to obtain a second mutual exclusion object associated with an object manager module and define a read event object with a name conforming to a predetermined format. The code can further represent instructions that when executed cause the processor to release the second mutual exclusion object, release the first mutual exclusion object, read at least a portion of the shared resource, obtain the second mutual exclusion object, destroy the read event object and release the second mutual exclusion object.
11 Citations
19 Claims
-
1. A non-transitory processor-readable medium storing code representing instructions that when executed cause a processor to:
-
obtain a first mutual exclusion object, the first mutual exclusion object being a write mutual exclusion object associated with a shared resource; obtain a second mutual exclusion object, the second mutual exclusion object being associated with an object manager module; define a read event object with a name conforming to a predetermined format; release the second mutual exclusion object; release the first mutual exclusion object; read at least a portion of the shared resource; obtain the second mutual exclusion object; destroy the read event object; and release the second mutual exclusion object. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A non-transitory processor-readable medium storing code representing instructions that when executed cause a processor to:
-
obtain a first mutual exclusion object, the first mutual exclusion object being associated with a shared resource; obtain a second mutual exclusion object, the second mutual exclusion object being associated with an object manager module; receive, from the object manager module, a count value, the count value being based at least in part on a number of read event objects that have a name conforming to a predetermined format; release the second mutual exclusion object; determine that the count value is zero, the count value being zero based at least in part on an abnormal reader process termination; write one or more bits to the shared resource; and release the first mutual exclusion object. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. An apparatus, comprising:
-
a processor; a memory; a shared resource; a library module, the library module including; a read module, the read module configured to; obtain a write mutual exclusion object, the write mutual exclusion object being associated with the shared resource; obtain an object manager mutual exclusion object, the object manager mutual exclusion object being associated with an object manager module; define a read event object, the read event object having a name conforming to a predetermined format; release the object manager mutual exclusion object; release the write mutual exclusion object; access an indicated portion of the shared resource; obtain the object manager mutual exclusion object; destroy the read event object; set a read event indicator; and release the object manager mutual exclusion object; and
a write module, the write module configured to;obtain the write mutual exclusion object; obtain the object manager mutual exclusion object; receive a count value from the object manager mutual exclusion object, the count value being based at least in part on a quantity of read event objects named according to the predetermined format; release the object manager mutual exclusion object; determine that the count value is zero, the count value being zero based at least in part on an abnormal process termination; write one or more bits to the shared resource; and release the write mutual exclusion object; a first application, the first application configured to access the indicated portion of the shared resource using at least an instance of the read module; and a second application, the second application configured to write to the shared resource using at least an instance of the write module. - View Dependent Claims (14, 15, 16, 17, 18, 19)
-
Specification