version 1.11, 2025/05/14 12:22:04
|
version 1.12, 2025/05/14 15:28:55
|
Line 24
|
Line 24
|
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* |
* |
* $Log$ |
* $Log$ |
|
* Revision 1.12 2025/05/14 15:28:55 snw |
|
* Get basic job table and lock table functionality working with new shared memory architecture |
|
* |
* Revision 1.11 2025/05/14 12:22:04 snw |
* Revision 1.11 2025/05/14 12:22:04 snw |
* Further work on shared memory |
* Further work on shared memory |
* |
* |
Line 202 skip_alloc:
|
Line 205 skip_alloc:
|
} |
} |
} |
} |
|
|
s->next = SBM(shm_config->hdr->jobtab_head); |
s->next = SBM(SOA(shm_config->hdr->jobtab_head)); |
shm_config->hdr->jobtab_head = SBM(s); |
shm_config->hdr->jobtab_head = SBM(s); |
|
|
jobtab_release_sem (); |
jobtab_release_sem (); |
Line 223 void job_remove(const pid_t pid)
|
Line 226 void job_remove(const pid_t pid)
|
|
|
if ((t != (job_slot_t *) NULL) && (t->pid == pid)) { |
if ((t != (job_slot_t *) NULL) && (t->pid == pid)) { |
|
|
shm_config->hdr->jobtab_head = SBM(t->next); |
shm_config->hdr->jobtab_head = SBM(SOA(t->next)); |
shm_free (t); |
shm_free (t); |
|
|
jobtab_release_sem (); |
jobtab_release_sem (); |