Changeset f4a13804007c7b1213e462a1395026bdbafe3e2e

Show
Ignore:
Timestamp:
05/13/11 20:01:15 (3 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1305316875 -0400
git-parent:

[986ca9cdcea688fff7615506f7a522fed667967b]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1305316875 -0400
Message:

this should all be replaced with concurrency kit

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/utils/noit_log.c

    r986ca9c rf4a1380  
    362362 
    363363  while(1) { 
    364     h = actx->head; 
     364    h = (void *)(volatile void *)actx->head; 
    365365    if(noit_atomic_casptr((volatile void **)&actx->head, NULL, h) == h) break; 
     366    /* TODO: load-load */ 
    366367  } 
    367368  while(h) { 
     
    379380jlog_asynch_push(jlog_asynch_ctx *actx, jlog_line *n) { 
    380381  while(1) { 
    381     n->next = actx->head; 
     382    n->next = (void *)(volatile void *)actx->head; 
    382383    if(noit_atomic_casptr((volatile void **)&actx->head, n, n->next) == n->next) return; 
     384    /* TODO: load-load */ 
    383385  } 
    384386}