Bounded FIFO queue with exclusive access
up vote
0
down vote
favorite
What would you say to be the best structure/way of maintaining a bounded FIFO queue with a some kind of callback being executed upon element removal, when the queue is full? I was thinking of locking everything, while checking size and doing modifications manually, but is there a a better way?
queue thread-safety locking fifo
add a comment |
up vote
0
down vote
favorite
What would you say to be the best structure/way of maintaining a bounded FIFO queue with a some kind of callback being executed upon element removal, when the queue is full? I was thinking of locking everything, while checking size and doing modifications manually, but is there a a better way?
queue thread-safety locking fifo
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
What would you say to be the best structure/way of maintaining a bounded FIFO queue with a some kind of callback being executed upon element removal, when the queue is full? I was thinking of locking everything, while checking size and doing modifications manually, but is there a a better way?
queue thread-safety locking fifo
What would you say to be the best structure/way of maintaining a bounded FIFO queue with a some kind of callback being executed upon element removal, when the queue is full? I was thinking of locking everything, while checking size and doing modifications manually, but is there a a better way?
queue thread-safety locking fifo
queue thread-safety locking fifo
asked 2 days ago
norbert23
4316
4316
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53417693%2fbounded-fifo-queue-with-exclusive-access%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown