X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gold%2Ftoken.h;h=1957cbdb471bc1378651bd519ad89c60bf2af322;hb=20ea4a609c44e5795a57c7b409e99442f8a44a0d;hp=dcf00b66804584ed82859eaecfd978d85775d947;hpb=ebdbb4583d9b05504b1ca7e4f6c370f5d355e9bd;p=deliverable%2Fbinutils-gdb.git diff --git a/gold/token.h b/gold/token.h index dcf00b6680..1957cbdb47 100644 --- a/gold/token.h +++ b/gold/token.h @@ -1,6 +1,6 @@ // token.h -- lock tokens for gold -*- C++ -*- -// Copyright 2006, 2007, 2008 Free Software Foundation, Inc. +// Copyright (C) 2006-2020 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