This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console->info("===== schduler ====="); | |
console->info("main thread id: {}", getThreadId()); | |
Rx::schedulers::run_loop runloop; | |
Rx::subject<int> subject; | |
auto observable = subject.get_observable(); | |
observable | |
.map([&](int v) { | |
console->info("thread[{}] - published value: {}", getThreadId(), v); | |
return v; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Basic instrumentation profiler by Cherno | |
// Usage: include this header file somewhere in your code (eg. precompiled header), and then use like: | |
// | |
// Instrumentor::Get().BeginSession("Session Name"); // Begin session | |
// { | |
// InstrumentationTimer timer("Profiled Scope Name"); // Place code like this in scopes you'd like to include in profiling | |
// // Code | |
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.6; | |
contract Splitter { | |
mapping(address => uint) public balances; | |
function unsafeSplit(address address1, address address2) | |
public | |
payable | |
returns(bool success) |