Skip to content

Instantly share code, notes, and snippets.

View heatblazer's full-sized avatar
😉
working... probably

ilian zapryanov heatblazer

😉
working... probably
  • this->company
  • there
View GitHub Profile
@jhasse
jhasse / main.cpp
Created May 27, 2012 14:53
Coroutine implementation in C++11
#include <iostream>
#include <thread>
class InterruptedException : public std::exception {
};
class AsyncThread {
public:
AsyncThread() {
std::unique_lock<std::mutex> lock(mutex);