X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fsema.C;h=aac4455dcd5499e09dfb5ffbc0191d3afd672c90;hb=9d832a1fff11b11aaa1108c460690ed05e2bdc05;hp=4bd1de7cbe9eca539e9bf4ecb54e1e925d46abcb;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/guicast/sema.C b/cinelerra-5.1/guicast/sema.C index 4bd1de7c..aac4455d 100644 --- a/cinelerra-5.1/guicast/sema.C +++ b/cinelerra-5.1/guicast/sema.C @@ -2,21 +2,21 @@ /* * CINELERRA * Copyright (C) 2008 Adam Williams - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * + * */ #include "bcsignals.h" @@ -116,11 +116,11 @@ Sema::~Sema() } } - + int Sema::lock(int number) { struct sembuf sop; - + // decrease the semaphore sop.sem_num = number; sop.sem_op = -1; @@ -132,7 +132,7 @@ int Sema::lock(int number) int Sema::unlock(int number) { struct sembuf sop; - + // decrease the semaphore sop.sem_num = number; sop.sem_op = 1;