view user/anatofuz/note/2020/08/20.md @ 2:b6c284fd5ae4

backup 2020-12-16
author autobackup
date Wed, 16 Dec 2020 15:11:16 +0900
parents e12992dca4a0
children
line wrap: on
line source

```
\ {
    codes       [
        [0] {
            args   "...",
            name   "whenEmpty"
        },
        [1] {
            args   "Impl* stack,__code next(...)",
            name   "clear"
        },
        [2] {
            args   "Impl* stack,Type* data, __code next(...)",
            name   "push"
        },
        [3] {
            args   "Impl* stack, __code next(Type* data, ...)",
            name   "pop"
        },
        [4] {
            args   "Impl* stack, __code next(Type* data, Type* data1, ...)",
            name   "pop2"
        },
        [5] {
            args   "Impl* stack, __code next(...), __code whenEmpty(...)",
            name   "isEmpty"
        },
        [6] {
            args   "Impl* stack, __code next(Type* data, ...)",
            name   "get"
        },
        [7] {
            args   "Impl* stack, __code next(Type* data, Type* data1, ...)",
            name   "get2"
        },
        [8] {
            args   "...",
            name   "next"
        }
    ],
    content     [
        [0]  "union Data* stack;
",
        [1]  "union Data* data;
",
        [2]  "union Data* data1;
",
        [3]  "enum Code whenEmpty;
",
        [4]  "enum Code clear;
",
        [5]  "enum Code push;
",
        [6]  "enum Code pop;
",
        [7]  "enum Code pop2;
",
        [8]  "enum Code isEmpty;
",
        [9]  "enum Code get;
",
        [10] "enum Code get2;
",
        [11] "enum Code next;
"
    ],
    data        [
        [0] "union Data* stack;
",
        [1] "union Data* data;
",
        [2] "union Data* data1;
"
    ],
    file_name   "/Users/anatofuz/src/firefly/hg/Gears/Gears/src/parallel_execution/tools/../Stack.h",
    name        "Stack"
}
```

```
[  5%] Generating c/AtomicReference.c
[  5%] Generating c/examples/boundedBuffer/main.c
[INFO] found instance taskManager, typeName TaskManager, cuurentCodeGear: code2, method: shutdown
[ 11%] Generating c/examples/boundedBuffer/initBuffer.c
[ 17%] Generating c/examples/boundedBuffer/SemaphoreImpl.c
[INFO] found instance lock, typeName Lock, cuurentCodeGear: pOperationSemaphoreImpl, method: doLock
[INFO] found instance queue, typeName Queue, cuurentCodeGear: pOperationSemaphoreImpl1, method: put
[INFO] found instance lock, typeName Lock, cuurentCodeGear: pOperationSemaphoreImpl1, method: doUnlock
[INFO] found instance lock, typeName Lock, cuurentCodeGear: pOperationSemaphoreImpl2, method: doUnlock
[INFO] found instance worker, typeName Worker, cuurentCodeGear: pOperationSemaphoreImpl3, method: taskReceive
[INFO] found instance lock, typeName Lock, cuurentCodeGear: vOperationSemaphoreImpl, method: doLock
[INFO] found instance queue, typeName Queue, cuurentCodeGear: vOperationSemaphoreImpl1, method: isEmpty
[INFO] found instance queue, typeName Queue, cuurentCodeGear: vOperationSemaphoreImpl2, method: take
[INFO] found instance taskManager, typeName TaskManager, cuurentCodeGear: vOperationSemaphoreImpl3, method: spawn
[INFO] found instance lock, typeName Lock, cuurentCodeGear: vOperationSemaphoreImpl4, method: doUnlock
[ 17%] Generating c/examples/boundedBuffer/BoundedBuffer.c
[INFO] found instance semaphore, typeName Semaphore, cuurentCodeGear: putBoundedBuffer, method: p
[INFO] found instance semaphore, typeName Semaphore, cuurentCodeGear: putBoundedBuffer1, method: p
[INFO] found instance semaphore, typeName Semaphore, cuurentCodeGear: putBoundedBuffer2, method: v
[INFO] found instance semaphore, typeName Semaphore, cuurentCodeGear: putBoundedBuffer3, method: v
[INFO] found instance semaphore, typeName Semaphore, cuurentCodeGear: takeBoundedBuffer, method: p
[INFO] found instance semaphore, typeName Semaphore, cuurentCodeGear: takeBoundedBuffer1, method: p
[INFO] found instance semaphore, typeName Semaphore, cuurentCodeGear: takeBoundedBuffer2, method: v
[INFO] found instance semaphore, typeName Semaphore, cuurentCodeGear: takeBoundedBuffer3, method: v
[ 23%] Generating c/examples/boundedBuffer/consumer.c
[INFO] found instance buffer, typeName Buffer, cuurentCodeGear: consumer, method: take
[ 23%] Generating c/examples/boundedBuffer/producer.c
[INFO] found instance buffer, typeName Buffer, cuurentCodeGear: producer, method: put
[ 29%] Generating c/SpinLock.c
[INFO] found instance atomic, typeName Atomic, cuurentCodeGear: doLockSpinLock, method: checkAndSet
[INFO] found instance atomic, typeName Atomic, cuurentCodeGear: doUnlockSpinLock, method: checkAndSet
[ 35%] Generating c/CPUWorker.c
[INFO] found instance tasks, typeName Queue, cuurentCodeGear: taskReceiveCPUWorker, method: take
[INFO] found instance worker, typeName Worker, cuurentCodeGear: getTaskCPUWorker, method: shutdown
[INFO] found instance iterator, typeName Iterator, cuurentCodeGear: odgCommitCPUWorker, method: barrier
[INFO] found instance taskManager, typeName TaskManager, cuurentCodeGear: odgCommitCPUWorker1, method: decrementTaskCount
[INFO] found instance queue, typeName Queue, cuurentCodeGear: odgCommitCPUWorker2, method: isEmpty
[INFO] found instance queue, typeName Queue, cuurentCodeGear: odgCommitCPUWorker3, method: take
[INFO] found instance taskManager, typeName TaskManager, cuurentCodeGear: odgCommitCPUWorker4, method: spawn
[INFO] found instance taskWorker, typeName Worker, cuurentCodeGear: odgCommitCPUWorker6, method: taskReceive
[ 35%] Generating c/TaskManagerImpl.c
[INFO] found instance taskManager, typeName TaskManager, cuurentCodeGear: spawnTasksTaskManagerImpl1, method: setWaitTask
[INFO] found instance taskManager, typeName TaskManager, cuurentCodeGear: spawnTasksTaskManagerImpl3, method: spawn
[INFO] found instance queue, typeName Queue, cuurentCodeGear: setWaitTaskTaskManagerImpl, method: put
[INFO] found instance iterator, typeName Iterator, cuurentCodeGear: spawnTaskManagerImpl, method: exec
[INFO] found instance queue, typeName Queue, cuurentCodeGear: taskSend1, method: put
[INFO] found instance queue, typeName Queue, cuurentCodeGear: taskSend2, method: put
[INFO] found instance tasks, typeName Queue, cuurentCodeGear: shutdownTaskManagerImpl, method: put
[ 41%] Generating c/SingleLinkedQueue.c
[ 41%] Generating c/SynchronizedQueue.c
[INFO] found instance atomic, typeName Atomic, cuurentCodeGear: clearSynchronizedQueue, method: checkAndSet
[INFO] found instance atomic, typeName Atomic, cuurentCodeGear: putSynchronizedQueue, method: checkAndSet
[INFO] found instance atomic, typeName Atomic, cuurentCodeGear: putSynchronizedQueue, method: checkAndSet
[INFO] found instance atomic, typeName Atomic, cuurentCodeGear: takeSynchronizedQueue, method: checkAndSet
[INFO] found instance atomic, typeName Atomic, cuurentCodeGear: takeSynchronizedQueue, method: checkAndSet
[ 47%] Generating c/MultiDimIterator.c
[INFO] found instance taskManager, typeName TaskManager, cuurentCodeGear: execMultiDimIterator, method: spawn
[INFO] found instance taskManager, typeName TaskManager, cuurentCodeGear: execMultiDimIterator1, method: spawn
```