Skip to content

Instantly share code, notes, and snippets.

View markwaterman's full-sized avatar

Mark Waterman markwaterman

View GitHub Profile
@markwaterman
markwaterman / AnalyzeSession.cs
Created June 9, 2022 21:49
ScaleOut StateServer session analysis sample
/*
* ScaleOut StateServer session analysis sample.
*
* Copyright 2022 ScaleOut Software, Inc.
*
* LICENSE AND DISCLAIMER
* ----------------------
* This material contains sample programming source code ("Sample Code").
* ScaleOut Software, Inc. (SSI) grants you a nonexclusive license to compile,
* link, run, display, reproduce, and prepare derivative works of
@markwaterman
markwaterman / SqlDependency.cs
Last active June 4, 2023 22:34
ScaleOut SqlDependency Sample
/*
* © Copyright 2003-2017 by ScaleOut Software, Inc.
*
* LICENSE AND DISCLAIMER
* ----------------------
* This material contains sample programming source code ("Sample Code").
* ScaleOut Software, Inc. (SSI) grants you a nonexclusive license to compile,
* link, run, display, reproduce, and prepare derivative works of
* this Sample Code. The Sample Code has not been thoroughly
* tested under all conditions. SSI, therefore, does not guarantee
@markwaterman
markwaterman / srw_mutex.hpp
Last active October 19, 2016 17:43
C++ mutex class for exclusive ownership based on Windows SRWLOCK. Can be used in conjunction with unique_lock.
#pragma once
#include <Windows.h>
class srw_mutex
{
public:
srw_mutex()
{
::InitializeSRWLock(&srw_);