Sha256: c32b83873f16908a251272817b1de981248abf841810cf430eb21c96c1e14179
Contents?: true
Size: 836 Bytes
Versions: 25
Compression:
Stored size: 836 Bytes
Contents
//Configure pg_spec0 and pg_spec1 <% if @debug %> <% [0, 1].each do |i| %> function pg_spec<%= i %>_init(ns, options) { pg_spec<%= i %>_watchlist = []; pg_spec<%= i %>_unwatchlist = []; pg_spec<%= i %>_init_params = {ns: ns, options: options}; pg_spec<%= i %>_ns = ns; pg_spec<%= i %>_sync_requests = []; } function pg_spec<%= i %>_watch(id, page) { pg_spec<%= i %>_watchlist.push({id: id, page: page}); } function pg_spec<%= i %>_unwatch(id) { pg_spec<%= i %>_unwatchlist.push(id); } function pg_spec<%= i %>_write(page) { vm_transaction_begin(); vm_cache_write(pg_spec<%= i %>_ns, page); vm_transaction_end(); } function pg_spec<%= i %>_sync(page_id) { pg_spec<%= i %>_sync_requests.push(page_id); } <% end %> <% end %>
Version data entries
25 entries across 25 versions & 1 rubygems