Diff of /Runtime/AlliantModel/parallelism.h [000000] .. [32eb06]  Maximize  Restore

Switch to side-by-side view

--- a
+++ b/Runtime/AlliantModel/parallelism.h
@@ -0,0 +1,38 @@
+/************************************************************************\
+ * Alliant
+\************************************************************************/
+
+void ReleaseSharedMemory()
+{
+  free( SharedBase );
+}
+
+void AcquireSharedMemory( NumBytes ) 
+int NumBytes;
+{
+  SharedSize = NumBytes + 100000;
+
+  SharedBase = SharedMemory = malloc( SharedSize-40 );
+
+  if ( SharedMemory == (char *) NULL )
+    SisalError( "AcquireSharedMemory", "malloc FAILED" );
+
+  SharedMemory = ALIGN(char*,SharedMemory);
+}
+
+void StartWorkers()
+{
+  EnterWorker( 0 );
+}
+
+void StopWorkers()
+{
+  *SisalShutDown = TRUE;
+  LeaveWorker();
+}
+
+void AbortParallel() 
+{ 
+  (void)kill( 0, SIGKILL ); 
+}
+

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks