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
#include "dispatch/dispatch.h" | |
dispatch_source_t source; | |
HANDLE evt; | |
struct OVERLAPPED_BUFFER { | |
OVERLAPPED ol; | |
size_t buffer_size; | |
void* buffer; |
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
Exception Info: Object reference not set to an instance of an object. | |
at MetroTwit.ViewModel.TweetListViewModel.<>c__DisplayClass1f.<StreamingUpdate>b__1b() | |
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) | |
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) |
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
#include "dispatch_test.h" | |
#include <dispatch.hpp> | |
#include <iostream> | |
LRESULT CALLBACK window_proc(HWND window, UINT message, WPARAM wParam, LPARAM lParam) | |
{ | |
gcd::queue thread_q = gcd::queue::get_current_thread_queue(); | |
switch(message) { |
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
#include "dispatch_test.h" | |
#include <dispatch.hpp> | |
#include <iostream> | |
#include <map> | |
// TODO hunt down a concurrent map implementation | |
// TODO operator= for gcd::object | |
std::map<HWND, gcd::queue> window_queues; |
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
// perform a simple mechanical transform from this: | |
{ req, res } = yield app.get(/^\/([0-9a-f]+)$/); | |
object_id = new bson.ObjectID(req.params[0]); | |
{ err, db } = yield db.open(); | |
if(err) { return res.send(500); } | |
store = new mongo.GridStore(db, object_id, "r"); | |
{ err, store } = yield store.open(); | |
if(err || !store.length) { return res.send(404); } | |
{ err, buf } = yield store.readBuffer(store.length); |
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
#include <iostream> | |
#include <list> | |
#include <tuple> | |
#include <memory> | |
#include <initializer_list> | |
template<typename Function> | |
Function pack_for_each(Function f) | |
{ | |
return f; |
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
// Copyright Joyent, Inc. and other Node contributors. | |
// | |
// 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 furnished to do so, subject to the | |
// following conditions: | |
// |
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
From ca796c4128bd2133b4412a5ddfcfca28529c2e58 Mon Sep 17 00:00:00 2001 | |
From: Peter Bright <drpizza@quiscalusmexicanus.org> | |
Date: Sun, 7 Aug 2011 06:11:21 +0100 | |
Subject: [PATCH] Make MSVS build. | |
--- | |
.gitignore | 15 ++++++ | |
deps/http_parser/http_parser.gyp | 44 ++++++++++++++++- | |
deps/uv/build/all.gyp | 50 ++++++++++++++++---- | |
deps/uv/deps/pthread-win32/build/all.gyp | 45 ++++++++++++++---- |
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
From 519641428c61be0adc1a817ec5df642d8483eaed Mon Sep 17 00:00:00 2001 | |
From: Peter Bright <drpizza@quiscalusmexicanus.org> | |
Date: Sun, 7 Aug 2011 06:11:21 +0100 | |
Subject: [PATCH] Make MSVS build. | |
MSVS settings don't actually need to be guarded by conditions. gyp will do the right thing. | |
--- | |
.gitignore | 15 ++++++ | |
deps/http_parser/http_parser.gyp | 35 +++++++++++++- | |
deps/uv/build/all.gyp | 42 +++++++++++++---- |
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
{ | |
'target_defaults': { | |
'default_configuration': 'Debug', | |
'configurations': { | |
# TODO: hoist these out and put them somewhere common, because | |
# RuntimeLibrary MUST MATCH across the entire project | |
'Debug': { | |
'defines': [ 'DEBUG', '_DEBUG' ], | |
'msbuild_settings': { | |
'ClCompile': { |
OlderNewer