@@ -80,10 +80,6 @@ void DEBUG2(const char *fmt, ...) { }
80
80
# define DEBUG_ENTRY (E ) {}
81
81
#endif
82
82
83
- #ifdef PULSE
84
- #include "pulse_c_send.h"
85
- #endif
86
-
87
83
#ifdef BITCASK_DEBUG
88
84
void format_bin (char * buf , size_t buf_size , const unsigned char * bin , size_t bin_size )
89
85
{
@@ -378,9 +374,6 @@ static void bitcask_nifs_file_resource_cleanup(ErlNifEnv* env, void* arg);
378
374
379
375
static ErlNifFunc nif_funcs [] =
380
376
{
381
- #ifdef PULSE
382
- {"set_pulse_pid" , 1 , set_pulse_pid },
383
- #endif
384
377
{"keydir_new" , 0 , bitcask_nifs_keydir_new0 },
385
378
{"keydir_new" , 1 , bitcask_nifs_keydir_new1 },
386
379
{"maybe_keydir_new" , 1 , bitcask_nifs_maybe_keydir_new1 },
@@ -1213,12 +1206,6 @@ static void perhaps_sweep_siblings(bitcask_keydir* keydir)
1213
1206
return ;
1214
1207
}
1215
1208
1216
- #ifdef PULSE
1217
- i = 10 ;
1218
- #else /* PULSE */
1219
- i = 100 * 1000 ;
1220
- #endif
1221
-
1222
1209
gettimeofday (& target , NULL );
1223
1210
target .tv_usec += max_usec ;
1224
1211
if (target .tv_usec > 1000000 )
@@ -2728,17 +2715,7 @@ static void msg_pending_awaken(ErlNifEnv* env, bitcask_keydir* keydir,
2728
2715
for (idx = 0 ; idx < keydir -> pending_awaken_count ; idx ++ )
2729
2716
{
2730
2717
enif_clear_env (msg_env );
2731
- #ifdef PULSE
2732
- /* Using PULSE_SEND here sometimes deadlocks the Bitcask PULSE test.
2733
- Reverting to using enif_send for now.
2734
- TODO: Check if PULSE_SEND is really necessary and investigate/fix
2735
- deadlock in the future
2736
- */
2737
- /* PULSE_SEND(env, &keydir->pending_awaken[idx], msg_env, msg); */
2738
2718
enif_send (env , & keydir -> pending_awaken [idx ], msg_env , msg );
2739
- #else
2740
- enif_send (env , & keydir -> pending_awaken [idx ], msg_env , msg );
2741
- #endif
2742
2719
}
2743
2720
enif_free_env (msg_env );
2744
2721
}
@@ -3055,10 +3032,6 @@ static int on_load(ErlNifEnv* env, void** priv_data, ERL_NIF_TERM load_info)
3055
3032
ATOM_CUR = enif_make_atom (env , "cur" );
3056
3033
ATOM_BOF = enif_make_atom (env , "bof" );
3057
3034
3058
- #ifdef PULSE
3059
- pulse_c_send_on_load (env );
3060
- #endif
3061
-
3062
3035
return 0 ;
3063
3036
}
3064
3037
0 commit comments