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 3349 - (download) (as text) (annotate)
Tue Oct 27 15:16:36 2015 UTC (3 years, 7 months ago) by jhr
File size: 979 byte(s)
making copyrights consistent for all code in the repository
/*! \file strands.h
 *
 * \author John Reppy
 */

/*
 * This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
 *
 * COPYRIGHT (c) 2015 The University of Chicago
 * 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