Skip to content

Instantly share code, notes, and snippets.

@midix
midix / ServiceKnownTypesDiscovery.cs
Created February 17, 2017 15:51
Dynamic ServiceKnownTypesDiscovery for WCF services
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using System.IO;
namespace MyService.Helpers
{
/// <summary>
@midix
midix / ThreadWaitCase.cpp
Last active January 24, 2024 09:41
Demo for what happens if pthread_cond_signal is called before a thread goes into waiting mode with pthread_cond_wait
// See http://stackoverflow.com/questions/5536759/condition-variable-why-calling-pthread-cond-signal-before-calling-pthread-co for discussion
///////////////////////////////
// ThreadWaitCase.hpp
#include <pthread.h>
class ThreadWaitCase
{
public: