X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Frculfhash.c;h=401a76a4ae06f328682549239decae8c7f3fa980;hb=acdb82a20ba20467b89c67aa44ca03da610513a9;hp=37fbc1b7c44c1ef5bcd347b19b7ef3a483d6c016;hpb=b047e7a793421e3ff1f5dca2b27c72751a1f4db4;p=userspace-rcu.git diff --git a/src/rculfhash.c b/src/rculfhash.c index 37fbc1b..401a76a 100644 --- a/src/rculfhash.c +++ b/src/rculfhash.c @@ -1,24 +1,10 @@ +// SPDX-FileCopyrightText: 2010-2011 Mathieu Desnoyers +// SPDX-FileCopyrightText: 2011 Lai Jiangshan +// +// SPDX-License-Identifier: LGPL-2.1-or-later + /* - * rculfhash.c - * * Userspace RCU library - Lock-Free Resizable RCU Hash Table - * - * Copyright 2010-2011 - Mathieu Desnoyers - * Copyright 2011 - Lai Jiangshan - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* @@ -1931,7 +1917,7 @@ void do_auto_resize_destroy_cb(struct urcu_work *work) ht->flavor->register_thread(); ret = cds_lfht_delete_bucket(ht); if (ret) - urcu_die(ret); + urcu_die(-ret); free_split_items_count(ht); ret = pthread_mutex_destroy(&ht->resize_mutex); if (ret)