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

Comparing libcoro/coro.h (file contents):
Revision 1.25 by root, Fri Apr 4 20:07:35 2008 UTC vs.
Revision 1.27 by root, Wed Jul 16 00:47:05 2008 UTC

52 * 2007-05-02 Add assembly versions for x86 and amd64 (to avoid reliance 52 * 2007-05-02 Add assembly versions for x86 and amd64 (to avoid reliance
53 * on SIGUSR2 and sigaltstack in Crossfire). 53 * on SIGUSR2 and sigaltstack in Crossfire).
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 */ 58 */
58 59
59#ifndef CORO_H 60#ifndef CORO_H
60#define CORO_H 61#define CORO_H
61 62
207 208
208struct coro_context { 209struct coro_context {
209 volatile void **sp; 210 volatile void **sp;
210}; 211};
211 212
212void __attribute__ ((__noinline__, __fastcall__)) 213void __attribute__ ((__noinline__, __regparm__(2)))
213 coro_transfer (coro_context *prev, coro_context *next); 214 coro_transfer (coro_context *prev, coro_context *next);
214 215
215#elif CORO_PTHREAD 216#elif CORO_PTHREAD
216 217
217#include <pthread.h> 218#include <pthread.h>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines