Sha256: 0a1fbd48daa4b006f6061358aa136d8ab8f7783c5def7c2c094e175f61e1ca3a

Contents?: true

Size: 531 Bytes

Versions: 59

Compression:

Stored size: 531 Bytes

Contents

//Configure pg_mem0, pg_mem1, pg_mem2
<% [0, 1, 2].each do |i| %>
  function pg_mem<%= i %>_init(ns, options) {
    pg_mem<%= i %>_init_params = {ns: ns, options: options};
    pg_mem<%= i %>_ns = ns;

    <% if @debug %>
      pg_mem<%= i %>_spec_did_init = true;
    <% end %>
  }

  function pg_mem<%= i %>_watch(id, page) {
  }

  function pg_mem<%= i %>_unwatch(id) {
  }

  function pg_mem<%= i %>_write(page) {
    vm_transaction_begin();
    vm_cache_write(pg_mem<%= i %>_ns, page);
    vm_transaction_end();
  }
<% end %>

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
flok-0.0.105 app/kern/pagers/pg_mem.js
flok-0.0.103 app/kern/pagers/pg_mem.js
flok-0.0.102 app/kern/pagers/pg_mem.js
flok-0.0.101 app/kern/pagers/pg_mem.js
flok-0.0.100 app/kern/pagers/pg_mem.js
flok-0.0.99 app/kern/pagers/pg_mem.js
flok-0.0.98 app/kern/pagers/pg_mem.js
flok-0.0.97 app/kern/pagers/pg_mem.js
flok-0.0.96 app/kern/pagers/pg_mem.js
flok-0.0.95 app/kern/pagers/pg_mem.js
flok-0.0.94 app/kern/pagers/pg_mem.js
flok-0.0.93 app/kern/pagers/pg_mem.js
flok-0.0.92 app/kern/pagers/pg_mem.js
flok-0.0.91 app/kern/pagers/pg_mem.js
flok-0.0.90 app/kern/pagers/pg_mem.js
flok-0.0.89 app/kern/pagers/pg_mem.js
flok-0.0.88 app/kern/pagers/pg_mem.js
flok-0.0.87 app/kern/pagers/pg_mem.js
flok-0.0.86 app/kern/pagers/pg_mem.js
flok-0.0.85 app/kern/pagers/pg_mem.js