ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libcoro/coro.h
(Generate patch)

Comparing libcoro/coro.h (file contents):
Revision 1.28 by root, Thu Oct 30 09:44:31 2008 UTC vs.
Revision 1.30 by root, Wed Nov 5 01:54:34 2008 UTC

54 * 2008-01-21 Disable CFI usage on anything but GNU/Linux. 54 * 2008-01-21 Disable CFI usage on anything but GNU/Linux.
55 * 2008-03-02 Switched to 2-clause BSD license with GPL exception. 55 * 2008-03-02 Switched to 2-clause BSD license with GPL exception.
56 * 2008-04-04 New (but highly unrecommended) pthreads backend. 56 * 2008-04-04 New (but highly unrecommended) pthreads backend.
57 * 2008-04-24 Reinstate CORO_LOSER (had wrong stack adjustments). 57 * 2008-04-24 Reinstate CORO_LOSER (had wrong stack adjustments).
58 * 2008-10-30 Support assembly method on x86 with and without frame pointer. 58 * 2008-10-30 Support assembly method on x86 with and without frame pointer.
59 * 2008-11-03 Use a global asm statement for CORO_ASM, idea by pippijn.
60 * 2008-11-05 Hopefully fix misaligned stacks with CORO_ASM/SETJMP.
59 */ 61 */
60 62
61#ifndef CORO_H 63#ifndef CORO_H
62#define CORO_H 64#define CORO_H
63 65
206# endif 208# endif
207 209
208#elif CORO_ASM 210#elif CORO_ASM
209 211
210struct coro_context { 212struct coro_context {
211 volatile void **sp; 213 volatile void **sp; /* must be at offset 0 */
212}; 214};
213 215
214void __attribute__ ((__noinline__, __regparm__(2))) 216void __attribute__ ((__noinline__, __regparm__(2)))
215 coro_transfer (coro_context *prev, coro_context *next); 217coro_transfer (coro_context *prev, coro_context *next);
216 218
217#elif CORO_PTHREAD 219#elif CORO_PTHREAD
218 220
219#include <pthread.h> 221#include <pthread.h>
220 222

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines