Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /branches/vis12-cl/src/include/Diderot/strands.h
ViewVC logotype

View of /branches/vis12-cl/src/include/Diderot/strands.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3118 - (download) (as text) (annotate)
Mon Mar 23 18:05:45 2015 UTC (4 years, 1 month ago) by jhr
File size: 926 byte(s)
  working on OpenCL issues
/*! \file strands.h
 *
 * \author John Reppy
 */

/*
 * COPYRIGHT (c) 2011 The Diderot Project (http://diderot-language.cs.uchicago.edu)
 * All rights reserved.
 */

#ifndef _DIDEROT_STRANDS_H_
#define _DIDEROT_STRANDS_H_

#ifndef _DIDEROT_TYPES_H_
#  include "Diderot/types.h"
#endif
#ifndef _DIDEROT_WORLD_H_
#  include "Diderot/world.h"
#endif

typedef StrandStatus_t (*update_method_t)(void *glob, void *inSt, void *outSt);
typedef void (*stabilize_method_t)(void *glob, void *inSt, void *outSt);
typedef void (*convert_method_t)(void *st, void *); 

/* hooks generated by the compiler for the runtime */
struct struct_strand {
    char                *name;          //!< name of strand
    size_t              stateSzb;       //!< size of strand state in bytes
    update_method_t     update;         //!< update method
    stabilize_method_t  stabilize;      //!< stabilize method
};

#endif /* !_DIDEROT_STRANDS_H_ */

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0