version 1.11, 2025/05/14 12:22:04
|
version 1.13, 2025/06/23 20:53:30
|
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.13 2025/06/23 20:53:30 snw |
|
* Documentation updates |
|
* |
|
* 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 208 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 229 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 (); |
Line 272 void job_request_stop(const pid_t target
|
Line 278 void job_request_stop(const pid_t target
|
|
|
} |
} |
|
|
|
logprintf (FM_LOG_ERROR, "job_request_stop: could not find pid %ld in job table", target_pid); |
|
|
jobtab_release_sem (); |
jobtab_release_sem (); |
|
|
} |
} |