equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2001, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
67 Mutex* _lock; |
67 Mutex* _lock; |
68 |
68 |
69 PtrQueueSet* qset() { return _qset; } |
69 PtrQueueSet* qset() { return _qset; } |
70 bool is_permanent() const { return _permanent; } |
70 bool is_permanent() const { return _permanent; } |
71 |
71 |
72 // Process queue entries and release resources, if not permanent. |
72 // Process queue entries and release resources. |
73 void flush_impl(); |
73 void flush_impl(); |
74 |
74 |
75 // Initialize this queue to contain a null buffer, and be part of the |
75 // Initialize this queue to contain a null buffer, and be part of the |
76 // given PtrQueueSet. |
76 // given PtrQueueSet. |
77 PtrQueue(PtrQueueSet* qset, bool permanent = false, bool active = false); |
77 PtrQueue(PtrQueueSet* qset, bool permanent = false, bool active = false); |