Changeset 33106 in project


Ignore:
Timestamp:
01/21/16 15:20:52 (4 years ago)
Author:
svnwiki
Message:

Anonymous wiki edit for IP [78.51.158.166]:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/pthreads

    r33105 r33106  
    1616* The Scheme API is not yet tested.
    1717
    18 * Implementation inherits obsolete code.  (A dysfunctional - but actively used- return value conversion to be removed in favor of performance.)
    19 
    2018
    2119== API
     
    2624
    2725<procedure>extern int start_asynchronous_request(C_pthread_request_function_t function, void *data, void *callback);</procedure>
     26
     27Send {{function}} to be executed at any thread of the pool.  {{Function}} must accept one argument, the {{data}}.  {{Callback}} must be a {{C_GC_ROOT}} object holding the procedure to receive the result for {{function}}.
     28
     29<procedure>void C_interrupt_call(void *callback, void *result, void *value)</procedure>
     30
     31Predecessor of [[concurrent-native-callbacks]].  Tell CHICKEN to call the procedure held in the {{C_GC_ROOT}} object {{callback}} on the result of applying the {{C_GC_ROOT}} object {{result}} to {{value}}.
    2832
    2933=== Scheme
     
    3842
    3943{{CALLBACK}}: Pointer to callback procedure wrapped in a {{C_GC_ROOT}}.
    40 The callback is called with the fixnum value returned by {{JOB}}.
     44The callback is called with the value returned by {{JOB}}.
    4145
    4246== Examples
Note: See TracChangeset for help on using the changeset viewer.