Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #2 from branch 'bwf-pool-race'

  • Loading branch information...
commit 71e554db4db5476bc8c042d8e5d14df3a9a3019f 2 parents 0e15b5d + efe0f8a
@beerriot beerriot authored
Showing with 16 additions and 0 deletions.
  1. +7 −0 src/poolboy.erl
  2. +5 −0 src/poolboy_sup.erl
  3. +4 −0 src/poolboy_worker.erl
View
7 src/poolboy.erl
@@ -9,6 +9,13 @@
-export([init/1, ready/2, ready/3, overflow/2, overflow/3, full/2, full/3,
handle_event/3, handle_sync_event/4, handle_info/3, terminate/3,
code_change/4]).
+-ifdef(PULSE).
+-compile(export_all).
+-compile({parse_transform, pulse_instrument}).
+-compile({pulse_replace_module, [{gen_fsm, pulse_gen_fsm},
+ {gen_server, pulse_gen_server},
+ {supervisor, pulse_supervisor}]}).
+-endif.
-define(TIMEOUT, 5000).
View
5 src/poolboy_sup.erl
@@ -4,6 +4,11 @@
-behaviour(supervisor).
-export([start_link/2, init/1]).
+-ifdef(PULSE).
+-compile(export_all).
+-compile({parse_transform, pulse_instrument}).
+-compile({pulse_replace_module, [{supervisor, pulse_supervisor}]}).
+-endif.
start_link(Mod, Args) ->
supervisor:start_link(?MODULE, {Mod, Args}).
View
4 src/poolboy_worker.erl
@@ -3,6 +3,10 @@
-module(poolboy_worker).
-export([behaviour_info/1]).
+-ifdef(PULSE).
+-compile(export_all).
+-compile({parse_transform, pulse_instrument}).
+-endif.
behaviour_info(callbacks) ->
[{start_link, 1}];
Please sign in to comment.
Something went wrong with that request. Please try again.