Notification barrier
First Claim
1. A method for implementing a notification barrier in a multi-threaded, object-oriented processing environment of a computer system, comprising:
- installing a notification barrier on a sender software object configured to communicate with a receiver software object in the multi-threaded, object-oriented processing environment;
when the receiver software object is to be torn down;
sending a request to the sender software object to remove a callback method installed on the sender software object, the callback method for sending notifications to the receiver software object;
receiving a call to the notification barrier from the receiver software object;
responsive to the call, holding a notification lock until the sender software object has no pending notifications for the receiver software object;
in response to releasing the notification lock, sending a return from the sender software object to the receiver software object; and
tearing down the receiver software object in response to the return.
1 Assignment
0 Petitions
Accused Products
Abstract
The disclosed embodiments provide a system which implements a notification barrier. During operation, the system receives a call to the notification barrier installed on a sender object, wherein the call originates from a receiver object which receives notifications posted by the sender object. In response to the call, the system acquires a notification lock, wherein the notification lock is held whenever the sender is posting a notification. The system then releases the notification lock, wherein releasing the lock indicates to the receiver object that the sender object has no pending posted notifications.
-
Citations
24 Claims
-
1. A method for implementing a notification barrier in a multi-threaded, object-oriented processing environment of a computer system, comprising:
-
installing a notification barrier on a sender software object configured to communicate with a receiver software object in the multi-threaded, object-oriented processing environment; when the receiver software object is to be torn down; sending a request to the sender software object to remove a callback method installed on the sender software object, the callback method for sending notifications to the receiver software object; receiving a call to the notification barrier from the receiver software object; responsive to the call, holding a notification lock until the sender software object has no pending notifications for the receiver software object; in response to releasing the notification lock, sending a return from the sender software object to the receiver software object; and tearing down the receiver software object in response to the return. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A non-transitory computer-readable storage medium storing instructions that when executed by a computer system cause the computer system to perform a method for implementing a notification barrier in a multi-threaded, object-oriented processing environment of the computer system, the method comprising:
-
installing a notification barrier on a sender software object configured to communicate with a receiver software object in the multi-threaded, object-oriented processing environment; when the receiver software object is to be torn down; sending a request from the receiver software object to the sender software object to remove a callback method installed on the sender software object, the callback method for sending notifications to the receiver software object; receiving a call to the notification barrier from the receiver software object;
responsive to the call, holding a notification lock until the sender software object has no pending notifications for the receiver software object;in response to releasing the notification lock, sending a return from the sender software object to the receiver software object; and tearing down the receiver software object in response to the return. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. An apparatus which implements a notification barrier in a multi-threaded, object-oriented processing environment of the apparatus, comprising:
-
a notification barrier installed on a sender software object, wherein the notification barrier is configured to receive a call that originates from a receiver software object which receives notifications posted by the sender software object in the multi-threaded, object-oriented processing environment, where the call is received when the receiver software object is to be torn down; wherein in response to the call, a processor of the apparatus executes instructions, which causes the processor to send a request from the receiver software object to the sender software object to remove a callback method installed on the sender software object, the callback method for sending notifications to the receiver software object;
holding a notification lock until the sender software object has no pending notifications for the receiver software object;in response to release of the notification lock, send a return from the sender software object to the receiver software object; and tear down the receiver software object in response to the return. - View Dependent Claims (18, 19, 20, 21, 22, 23, 24)
-
Specification