I hereby claim:
- I am jmjatlanta on github.
- I am jmjatlanta (https://keybase.io/jmjatlanta) on keybase.
- I have a public key ASAF3Nqn3SJKkWiep11tfEK2paGPUGqU5KyfmamSR0etPgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
/* | |
* Copyright (c) 2018 Bitshares Foundation, and contributors. | |
* | |
* The MIT License | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
CC=g++ | |
CFLAGS=-g | |
DEPS= | |
%.o: %.cpp $(DEPS) | |
$(CC) -c -o $@ $< $(CFLAGS) | |
test_threadsafe: test_threadsafe.o | |
$(CC) -g -O0 -lSegFault -o test_threadsafe $^ -lpthread -rdynamic |
/*** | |
* This is a test to demonstrate what happens when a thread with | |
* a lock yields | |
*/ | |
#include <thread> | |
#include <mutex> | |
#include <iostream> | |
std::mutex blocker; | |
std::mutex logger; |
/**** | |
* Attempt to have fc::threads use fc::mutex when yield() causes a context switch | |
*/ | |
BOOST_AUTO_TEST_CASE( yield_with_mutex ) | |
{ | |
// set up thread pool | |
uint16_t num_threads = 5; | |
std::vector<fc::thread*> thread_collection; | |
for(uint16_t i = 0; i < num_threads; i++) | |
thread_collection.push_back(new fc::thread("My" + std::to_string(i))); |
1950456,1950598c1950456,1950598 | |
< {"id":"1.10.29277","expiration_time":"2019-05-17T15:06:15","proposed_transaction":{"ref_block_num":0,"ref_block_prefix":0,"expiration":"2019-05-17T15:06:15","operations":[[0,{"fee":{"amount":50000,"asset_id":"1.3.0"},"from":"1.2.466056","to":"1.2.382882","amount":{"amount":500000,"asset_id":"1.3.5303"},"memo":{"from":"BTS7gDsXig5wwDjZRr7ewx2w1fvcefG23pNnppc3BBcEPeTK2Z7M5","to":"BTS6yQ2HkAWfZvrGTwHSDQyBxNgAGqbsNYT9gkqpQks7iZ2FFwqib","nonce":"202400808233984","message":"d3762680875af8f92ed67b66df9f829a"},"extensions":[]}]],"extensions":[]},"required_active_approvals":["1.2.466056"],"available_active_approvals":["1.2.1016553","1.2.1016563"],"required_owner_approvals":[],"available_owner_approvals":[],"available_key_approvals":[],"proposer":"1.2.1016502"} | |
< {"id":"1.10.29908","expiration_time":"2019-05-16T10:15:32","proposed_transaction":{"ref_block_num":0,"ref_block_prefix":0,"expiration":"2019-05-16T10:15:32","operations":[[23,{"fee":{"amount":13061,"asset_id":"1.3.0"},"fee_pay |
1950456,1950598c1950456,1950598 | |
< {"id":"1.10.29277","expiration_time":"2019-05-17T15:06:15","proposed_transaction":{"ref_block_num":0,"ref_block_prefix":0,"expiration":"2019-05-17T15:06:15","operations":[[0,{"fee":{"amount":50000,"asset_id":"1.3.0"},"from":"1.2.466056","to":"1.2.382882","amount":{"amount":500000,"asset_id":"1.3.5303"},"memo":{"from":"BTS7gDsXig5wwDjZRr7ewx2w1fvcefG23pNnppc3BBcEPeTK2Z7M5","to":"BTS6yQ2HkAWfZvrGTwHSDQyBxNgAGqbsNYT9gkqpQks7iZ2FFwqib","nonce":"202400808233984","message":"d3762680875af8f92ed67b66df9f829a"},"extensions":[]}]],"extensions":[]},"required_active_approvals":["1.2.466056"],"available_active_approvals":["1.2.1016553","1.2.1016563"],"required_owner_approvals":[],"available_owner_approvals":[],"available_key_approvals":[],"proposer":"1.2.1016502"} | |
< {"id":"1.10.29908","expiration_time":"2019-05-16T10:15:32","proposed_transaction":{"ref_block_num":0,"ref_block_prefix":0,"expiration":"2019-05-16T10:15:32","operations":[[23,{"fee":{"amount":13061,"asset_id":"1.3.0"},"fee_pay |
{ | |
"initial_timestamp": "2016-01-18T09:18:25", | |
"max_core_supply": "1000000000000000", | |
"initial_parameters": { | |
"current_fees": { | |
"parameters": [[ | |
0,{ | |
"fee": 2000000, | |
"price_per_kbyte": 1000000 | |
} |