dash/src
Wladimir J. van der Laan f2b33a7d34
Merge #14839: [rebase] threads: fix unitialized members in sched_param
89282379baa503156d9b85f116ae5672f8588b39 threads: fix unitialized members in sched_param (Cory Fields)

Pull request description:

  Rebased theuni's #14342.

  Building with gcc 8.2 against musl libc, which apparently has more attributes available in its sched_param. The following warnings were produced:

      warning: missing initializer for member 'sched_param::sched_ss_low_priority' [-Wmissing-field-initializers]
      warning: missing initializer for member 'sched_param::sched_ss_repl_period' [-Wmissing-field-initializers]
      warning: missing initializer for member 'sched_param::sched_ss_init_budget' [-Wmissing-field-initializers]
      warning: missing initializer for member 'sched_param::sched_ss_max_repl' [-Wmissing-field-initializers]

  Since the current thread may have interesting non-zero values for these fields, we want to be sure to only change the intended one. Query and modify the current sched_param rather than starting from a zeroed one.

Tree-SHA512: a0bedbcf0130b3ee8261bb704e4bf6c9b760ad377c8a28c258765d54e54462b76707efc188b936b0a635cdd2bdf6b3b9298ab06ba361dc4806150b670d9702a3
2021-06-28 13:40:56 -05:00
..
bench merge bitcoin#14074: Use std::unordered_set instead of set in blockfilter interface 2021-06-27 12:03:15 +05:30
bls merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
coinjoin merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
compat Merge pull request #3887 from UdjinM6/bp12971 2020-12-19 00:34:53 -06:00
config
consensus partial bitcoin#15638: Add several util units 2021-06-27 12:03:15 +05:30
crypto merge bitcoin#14074: Use std::unordered_set instead of set in blockfilter interface 2021-06-27 12:03:15 +05:30
evo merge bitcoin#20499: Remove obsolete NODISCARD ifdef forest. Use [[nodiscard]] (C++17) 2021-06-27 12:03:14 +05:30
governance merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
immer
index merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
interfaces merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
leveldb Merge #13925: Merge leveldb subtree 2021-02-04 14:58:13 -06:00
llmq partial bitcoin#15638: Add several util units 2021-06-27 12:03:15 +05:30
logging merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
masternode Other Dash-specific serializations 2021-05-28 12:31:13 +03:00
node merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
obj
obj-test
policy merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
primitives merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
qt Merge #14517: qt: Fix start with the -min option 2021-06-28 13:40:53 -05:00
rpc partial bitcoin#15638: Add several util units 2021-06-27 12:03:15 +05:30
script merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
secp256k1
support Merge #15117: Fix invalid memory write in case of failing mmap(...) in PosixLockedPageAllocator::AllocateLocked 2021-06-28 13:40:52 -05:00
test Merge #15051: Tests: IsReachable is the inverse of IsLimited (DRY). Includes unit tests 2021-06-28 13:40:53 -05:00
univalue
util Merge #14839: [rebase] threads: fix unitialized members in sched_param 2021-06-28 13:40:56 -05:00
wallet partial bitcoin#15638: Add several util units 2021-06-27 12:03:15 +05:30
zmq merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
.clang-format
addrdb.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
addrdb.h Merge #17850: Convert addrdb/addrman to new serialization 2021-04-18 17:02:40 -04:00
addressindex.h
addrman.cpp Merge #15486: [addrman, net] Ensure tried collisions resolve, and allow feeler connections to existing outbound netgroups 2021-06-26 11:23:42 -05:00
addrman.h merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
amount.h
arith_uint256.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
arith_uint256.h
attributes.h merge bitcoin#20499: Remove obsolete NODISCARD ifdef forest. Use [[nodiscard]] (C++17) 2021-06-27 12:03:14 +05:30
base58.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
base58.h merge bitcoin#20499: Remove obsolete NODISCARD ifdef forest. Use [[nodiscard]] (C++17) 2021-06-27 12:03:14 +05:30
batchedlogger.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
batchedlogger.h Merge #12954: util: Refactor logging code into a global object 2021-05-25 14:09:35 +03:00
bech32.cpp partial bitcoin#16889: Add some general std::vector utility functions 2021-06-27 12:03:14 +05:30
bech32.h Partial merge bitcoin#11167: Full BIP173 (Bech32) support 2021-01-08 22:35:13 +03:00
bip39_english.h
bip39.cpp
bip39.h
blockencodings.cpp merge bitcoin#14074: Use std::unordered_set instead of set in blockfilter interface 2021-06-27 12:03:15 +05:30
blockencodings.h merge #18635: Replace -Wthread-safety-analysis with -Wthread-safety 2021-06-10 14:35:05 +05:30
blockfilter.cpp merge bitcoin#14074: Use std::unordered_set instead of set in blockfilter interface 2021-06-27 12:03:15 +05:30
blockfilter.h merge bitcoin#14074: Use std::unordered_set instead of set in blockfilter interface 2021-06-27 12:03:15 +05:30
bloom.cpp
bloom.h partial merge #18317: Serialization improvements step 6 (all except wallet/gui) 2021-05-28 11:39:24 +03:00
cachemap.h Other Dash-specific serializations 2021-05-28 12:31:13 +03:00
cachemultimap.h Other Dash-specific serializations 2021-05-28 12:31:13 +03:00
chain.cpp
chain.h Some missing non-Dash-specifc serializations 2021-05-28 11:39:25 +03:00
chainparams.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
chainparams.h Make recently added help strings dynamic, add one missing string (#3996) 2021-02-23 01:46:40 +03:00
chainparamsbase.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
chainparamsbase.h backport bitcoin#13190: Have gArgs handle printing help 2021-03-19 18:00:24 +03:00
chainparamsseeds.h contrib|src: Update hard coded seeds (#4152) 2021-05-13 12:31:45 +03:00
checkpoints.cpp
checkpoints.h
checkqueue.h merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
clientversion.cpp Adjust version formatting and add formatted version to rpc (#3908) 2021-01-11 20:34:42 +01:00
clientversion.h
coins.cpp merge bitcoin#14074: Use std::unordered_set instead of set in blockfilter interface 2021-06-27 12:03:15 +05:30
coins.h merge bitcoin#14074: Use std::unordered_set instead of set in blockfilter interface 2021-06-27 12:03:15 +05:30
compat.h Implement kqueue support (#3892) 2020-12-30 13:34:42 -06:00
compressor.cpp Merge #12752: Move compressor utility functions out of class 2021-04-18 17:10:05 -04:00
compressor.h Merge #17957: Convert compression.h to new serialization framework 2021-04-18 17:10:25 -04:00
core_io.h merge bitcoin#20499: Remove obsolete NODISCARD ifdef forest. Use [[nodiscard]] (C++17) 2021-06-27 12:03:14 +05:30
core_memusage.h
core_read.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
core_write.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
ctpl.h
cuckoocache.h
cxxtimer.hpp
dash-cli-res.rc
dash-cli.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
dash-tx-res.rc
dash-tx.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
dashd-res.rc
dashd.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
dbwrapper.cpp
dbwrapper.h merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
dsnotificationinterface.cpp instantsend: Use NotifyEntryRemoved signal instead of calling CInstantSendManager::TransactionRemovedFromMempool from CTxMemPool::removeUnchecked directly (#4160) 2021-05-19 01:02:31 +02:00
dsnotificationinterface.h instantsend: Use NotifyEntryRemoved signal instead of calling CInstantSendManager::TransactionRemovedFromMempool from CTxMemPool::removeUnchecked directly (#4160) 2021-05-19 01:02:31 +02:00
flat-database.h merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
fs.cpp bitcoin#13878: Add fstream wrapper to allow to pass unicode filename on Windows 2021-06-24 23:43:00 +05:30
fs.h bitcoin#13878: Add fstream wrapper to allow to pass unicode filename on Windows 2021-06-24 23:43:00 +05:30
hash.cpp merge bitcoin#14074: Use std::unordered_set instead of set in blockfilter interface 2021-06-27 12:03:15 +05:30
hash.h merge bitcoin#14074: Use std::unordered_set instead of set in blockfilter interface 2021-06-27 12:03:15 +05:30
hdchain.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
hdchain.h Other Dash-specific serializations 2021-05-28 12:31:13 +03:00
httprpc.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
httprpc.h
httpserver.cpp partial bitcoin#15638: Add several util units 2021-06-27 12:03:15 +05:30
httpserver.h partial bitcoin#15638: Add several util units 2021-06-27 12:03:15 +05:30
indirectmap.h
init.cpp Merge #14409: utils and libraries: Make 'blocksdir' always net specific 2021-06-28 13:40:55 -05:00
init.h merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
keepass.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
keepass.h Update copyright (#4115) 2021-04-20 22:33:02 +03:00
key_io.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
key_io.h Merge #11372: Address encoding cleanup 2021-01-08 22:35:34 +03:00
key.cpp Partial #19326: Simplify hash.h interface using Spans 2021-05-20 10:15:17 +05:30
key.h
keystore.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
keystore.h Merge #13627: Free keystore.h from file scope level type aliases 2020-12-18 12:55:45 -06:00
limitedmap.h
logging.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
logging.h Merge pull request #4191 from kittywhiskers/checkqueue 2021-06-26 16:08:02 +03:00
Makefile.am partial bitcoin#21966: Add platform-independent float encoder/decoder 2021-06-27 12:03:15 +05:30
Makefile.bench.include backport: bitcoin#10583 - [RPC] Split part of validateaddress into getaddressinfo (#3880) 2020-12-17 13:46:20 +01:00
Makefile.leveldb.include bitcoin#16710: Enable -Wsuggest-override if available 2021-06-17 19:54:52 +05:30
Makefile.qt.include Fix "Qualifying with unknown namespace/class" warnings on make translate 2021-03-22 13:40:17 +03:00
Makefile.qttest.include Merge #12830: [qt] [tests] Clarify address book error messages, add tests 2021-05-23 01:24:26 +03:00
Makefile.test.include Merge pull request #4191 from kittywhiskers/checkqueue 2021-06-26 16:08:02 +03:00
memusage.h
merkleblock.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
merkleblock.h partial merge #18317: Serialization improvements step 6 (all except wallet/gui) 2021-05-28 11:39:24 +03:00
messagesigner.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
messagesigner.h Update copyright (#4115) 2021-04-20 22:33:02 +03:00
miner.cpp partial bitcoin#15638: Add several util units 2021-06-27 12:03:15 +05:30
miner.h
net_processing.cpp partial bitcoin#15638: Add several util units 2021-06-27 12:03:15 +05:30
net_processing.h
net.cpp Merge #15051: Tests: IsReachable is the inverse of IsLimited (DRY). Includes unit tests 2021-06-28 13:40:53 -05:00
net.h merge bitcoin#14074: Use std::unordered_set instead of set in blockfilter interface 2021-06-27 12:03:15 +05:30
netaddress.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
netaddress.h merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
netbase.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
netbase.h
netfulfilledman.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
netfulfilledman.h Other Dash-specific serializations 2021-05-28 12:31:13 +03:00
netmessagemaker.h
noui.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
noui.h
pow.cpp
pow.h
prevector.h Merge #18112: Convert blockencodings.h to new serialization framework 2021-04-18 17:10:25 -04:00
protocol.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
protocol.h merge #19954: Complete the BIP155 implementation and upgrade to TORv3 2021-05-29 23:24:52 +03:00
pubkey.cpp
pubkey.h Partial #19660: Make HexStr take a span 2021-05-20 10:15:17 +05:30
random.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
random.h Partial merge bitcoin#14624: Some simple improvements to the RNG code (#3923) 2021-01-14 13:46:16 -06:00
rest.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
reverse_iterator.h
reverselock.h
saltedhasher.cpp Update copyright (#4115) 2021-04-20 22:33:02 +03:00
saltedhasher.h merge bitcoin#14074: Use std::unordered_set instead of set in blockfilter interface 2021-06-27 12:03:15 +05:30
scheduler.cpp
scheduler.h
serialize.h merge #19954: Complete the BIP155 implementation and upgrade to TORv3 2021-05-29 23:24:52 +03:00
span.h Partial #19326: Simplify hash.h interface using Spans 2021-05-20 10:15:17 +05:30
spentindex.h Other Dash-specific serializations 2021-05-28 12:31:13 +03:00
spork.cpp Update copyright (#4115) 2021-04-20 22:33:02 +03:00
spork.h merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
stacktraces.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
stacktraces.h Update copyright (#4115) 2021-04-20 22:33:02 +03:00
statsd_client.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
statsd_client.h trivial: misc. trivial refactoring (#4104) 2021-04-15 13:58:04 -04:00
streams.h merge #19954: Complete the BIP155 implementation and upgrade to TORv3 2021-05-29 23:24:52 +03:00
sync.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
sync.h merge bitcoin#17073: PASTE macros to util/macros.h 2021-06-27 12:03:15 +05:30
threadinterrupt.cpp merge #11640: Make LOCK, LOCK2, TRY_LOCK work with CWaitableCriticalSection 2021-06-06 16:22:17 +05:30
threadinterrupt.h merge #11599: Small locking rename 2021-06-06 16:22:17 +05:30
threadsafety.h merge #19249: Add means to handle negative capabilities in thread safety annotations 2021-06-10 14:35:08 +05:30
timedata.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
timedata.h
tinyformat.h Merge #17682: Update tinyformat to upstream 2021-05-20 10:15:17 +05:30
torcontrol.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
torcontrol.h
txdb.cpp partial bitcoin#16889: Add some general std::vector utility functions 2021-06-27 12:03:14 +05:30
txdb.h Merge pull request #4178 from UdjinM6/backports-0.17-pr30 2021-06-05 22:08:47 +03:00
txmempool.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
txmempool.h merge bitcoin#14074: Use std::unordered_set instead of set in blockfilter interface 2021-06-27 12:03:15 +05:30
ui_interface.cpp partial bitcoin#15638: Add several util units 2021-06-27 12:03:15 +05:30
ui_interface.h partial bitcoin#15638: Add several util units 2021-06-27 12:03:15 +05:30
uint256.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
uint256.h Partial #19326: Simplify hash.h interface using Spans 2021-05-20 10:15:17 +05:30
undo.h merge bitcoin#14074: Use std::unordered_set instead of set in blockfilter interface 2021-06-27 12:03:15 +05:30
unordered_lru_cache.h Update copyright (#4115) 2021-04-20 22:33:02 +03:00
validation.cpp Merge #13910: Log progress while verifying blocks at level 4 2021-06-28 13:40:51 -05:00
validation.h partial bitcoin#15638: Add several util units 2021-06-27 12:03:15 +05:30
validationinterface.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
validationinterface.h Merge #13023: Fix some concurrency issues in ActivateBestChain() 2021-06-05 22:13:02 +03:00
version.h merge #19845: add support to (un)serialize as ADDRv2 2021-05-29 23:24:02 +03:00
versionbits.cpp Rename bit 6 from "v17" to "dip0020" (#4142) 2021-05-07 18:36:30 +02:00
versionbits.h
walletinitinterface.h backport bitcoin#13190: Have gArgs handle printing help 2021-03-19 18:00:24 +03:00
warnings.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
warnings.h