+/*
+ * CINELERRA
+ * Copyright (C) 2020 William Morrow
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser 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 <stdio.h>
#include <stdint.h>
#include <stdlib.h>
}
}
-void trace_info::set_owner() { owner = pthread_self(); }
+void trace_info::set_owner() { owner = (unsigned long)pthread_self(); }
void trace_info::unset_owner() { owner = 0; }
void BC_Trace::dump_locks(FILE *fp)
fprintf(fp," %p %s, %s %p%s",
p->info, p->title, p->loc,
(void*)p->tid, p->is_owner ? " *" : "");
- if( p->info->owner && p->info->owner != p->tid )
+ if( p->info->owner && p->info->owner != (unsigned long)p->tid )
fprintf(fp," %p", (void*)p->info->owner);
fprintf(fp,"\n");
}