Project

General

Profile

Bug #318

pthread -> gthread migration

Added by Carlo Bramini over 11 years ago. Updated over 11 years ago.

Status:
Rejected
Priority:
Minor
Assignee:
-
Category:
core
Target version:
-
Start date:
July 13, 2013
Due date:
% Done:

0%

Estimated time:
Affects version:

Description

I think that it would be worth to migrate from posix threads to GLib threads.
GLib threads are modeled on posix threads API, so they also allow easy migration since the programming interface is basically identical.
As result, you won't need to detect pthread anymore at configure time, the sources will be unified to a single kind of API and audacious won't have dependencies to external modules (like in Windows with pthreadGC2.dll), at least for the parts related to audacious and its plugins.
I did this kind of fix in audacious/src/audacious/adder.c as a sample and I attached it here: I compiled it and it seems to run without problems.

Sincerely,

Carlo Bramini.

adder.txt (5.09 KB) adder.txt Carlo Bramini, July 13, 2013 13:12

History

#1 Updated by John Lindgren over 11 years ago

  • Status changed from New to Rejected

No. We used GLib threads at one point, and the switch to POSIX threads was intentional. The POSIX API is standardized, stable, and not subject to major deprecations according the whim of some Gnome developers.

Also available in: Atom PDF