2 Copyright © 2017, The AROS Development Team. All rights reserved.
6 #include <aros/types/spinlock_s.h>
7 #include <exec/tasks.h>
8 #include <exec/ports.h>
12 IPTR smpm_WorkerCount
;
13 struct List smpm_Workers
;
14 struct Task
*smpm_Master
;
15 struct MsgPort
*smpm_MasterPort
;
16 ULONG
*smpm_WorkBuffer
;
21 ULONG smpm_Oversample
;
27 struct Node smpw_Node
;
28 struct Task
*smpw_Task
;
29 struct MsgPort
*smpw_MasterPort
;
30 struct MsgPort
*smpw_MsgPort
;
31 struct Task
*smpw_SyncTask
;
32 spinlock_t
*smpw_Lock
;
34 ULONG smpw_Oversample
;
39 struct Message smpwm_Msg
;
46 spinlock_t
*smpwm_Lock
;
49 #define SPMWORKTYPE_FINISHED (1 << 0)
50 #define SPMWORKTYPE_MANDLEBROT (1 << 1)
51 #define SPMWORKTYPE_BUDDHA (1 << 2)
53 void SMPTestMaster(struct ExecBase
*);
54 void SMPTestWorker(struct ExecBase
*);