X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gold%2Ftoken.h;h=0200481e53eaa7d0277915c5e838d50e93d08eef;hb=b97bd976233ee4d43c2fe18f6356e62779cbe82d;hp=6c99441ddfba487615d3c55525047e5ea5afe709;hpb=da769d5629564b82d4eec1b256ffc562d5c01624;p=binutils-gdb.git diff --git a/gold/token.h b/gold/token.h index 6c99441ddfb..0200481e53e 100644 --- a/gold/token.h +++ b/gold/token.h @@ -1,6 +1,6 @@ // token.h -- lock tokens for gold -*- C++ -*- -// Copyright 2006, 2007 Free Software Foundation, Inc. +// Copyright (C) 2006-2021 Free Software Foundation, Inc. // Written by Ian Lance Taylor . // This file is part of gold. @@ -144,6 +144,15 @@ class Task_token this->writer_ = NULL; } + // Add some number of blockers to the token. + void + add_blockers(int c) + { + gold_assert(this->is_blocker_); + this->blockers_ += c; + this->writer_ = NULL; + } + // Remove a blocker from the token. Returns true if block count // drops to zero. bool