зеркало из https://github.com/mozilla/gecko-dev.git
bug 1373135 - Mark wr_thread_pool_delete destructor-safe. r=kats
This commit is contained in:
Родитель
17a6f52d45
Коммит
f209188047
|
@ -890,6 +890,7 @@ pub unsafe extern "C" fn wr_thread_pool_new() -> *mut WrThreadPool {
|
|||
Box::into_raw(Box::new(WrThreadPool(workers)))
|
||||
}
|
||||
|
||||
/// cbindgen:postfix=WR_DESTRUCTOR_SAFE_FUNC
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn wr_thread_pool_delete(thread_pool: *mut WrThreadPool) {
|
||||
Box::from_raw(thread_pool);
|
||||
|
|
|
@ -936,7 +936,7 @@ WR_FUNC;
|
|||
|
||||
WR_INLINE
|
||||
void wr_thread_pool_delete(WrThreadPool *aThreadPool)
|
||||
WR_FUNC;
|
||||
WR_DESTRUCTOR_SAFE_FUNC;
|
||||
|
||||
WR_INLINE
|
||||
WrThreadPool* wr_thread_pool_new()
|
||||
|
|
Загрузка…
Ссылка в новой задаче